People who code: we want your input. Take the Survey

# Questions tagged [magnitude]

The tag has no usage guidance.

81 questions
Filter by
Sorted by
Tagged with
0answers
25 views

### Stable and causal system

How many stable and causal systems with the same magnitude response are there? I know this relates to an all pass system for two rational transfer functions but am not sure about the specifics of this
0answers
20 views

### Interpreting FFT Phase - why phase of a cosine?

I understand how to interpret the magnitude result from the FFT, but why is the phase that we obtain, arctan(Im(x)/Re(x)) indicative of the phase shift of a cosine graph, and not a sine graph?
1answer
71 views

### Why do the DTFT and FFT give me completely different results for magnitude at a specific frequency?

I am trying to write a program to compute the magnitude and phase of a specific, non-integer frequency component (i.e. given a sampled finite signal of length $N$, I want to know the magnitude and ...
2answers
125 views

### Non-zero DFT components where zero is expected?

I am implementing DFT in Octave. Here's my code: ...
0answers
56 views

### Blackman window magnitude attenuation

I am trying to compute the fundamental phasor using sliding window DFT. I have employed a Blackman window in conjunction i.e $$\sum_{k=0}^{L_{DFT}-1}x(k) w(k) e^{-j2\pi k/N}$$ where $x(k)$ is the ...
0answers
95 views

### Moving average filter output magnitude in simulink

I was using the Moving average filter provided by simulink. I set the window length equal to 31 samples and i was using a fixed step solver with a step size of $\frac{1}{(50\times24)}$. I used a unit ...
1answer
91 views

### SMA, SVM and PSD python

I'm looking for python functions (package) to calculate SMA (signal magnitude area), SVM (signal vector magnitude) and PSD (Power Spectral Density). The goal is to extract features from an ...
1answer
2k views

### Calculate the magnitude and phase of a signal at a particular frequency in python

I have a signal for which I need to calculate the magnitude and phase at 200 Hz frequency only. I would like to use Fourier transform for it. I am very new to signal processing. And this is my first ...
1answer
56 views

### Magnitude response of mirrored (with respect to unit circle) poles and zeros

I just want to check that my understanding about the following paragraph from Optical Filter Design and Analysis by Christi K. Madsen, Jian H. Zhao is correct: A filter’s magnitude response is equal ...
1answer
88 views

### Squared magnitude of the Z-transform

I am basically new to the $z$-transform and there are some points regarding its square magnitude that I do not understand. Basically I do not understand how in slide 4 of PDF, they arrive at the ...
2answers
195 views

### How to convert magnitude to dB in matlab

I exported a diagram from FDTD simulation, and now I want to change the magnitude to dB, here is the exported codes: ...
1answer
60 views

### Terminology for instantaneous phase of magnitude component of complex signal

In my field, we deal with data that are originally complex-valued. Typically, researchers convert their data from real + imaginary to magnitude + phase, and then discard the phase data (i.e., we ...
2answers
68 views

### Working with a sound's magnitude instead of amplitude

I'm working on a project, where we're recording sound with a piezo-disc which looks a little something like this: Now, unless we're doing something horribly horribly wrong, I've discovered that we're ...
1answer
240 views

### Impulse response from frequency response in Matlab

I am trying to design equalization filter and therefore I want to define my own amplitude and phase response and then to obtain the impulse response of the filter. I thought that the output of the ...
3answers
153 views

### What does this paragraph mean?

I'm reading this paper about about an algorithm to measure image sharpness, and am confused by these sentences in the 6th paragraph: It is well known that the attenuation of high-frequency content ...
0answers
42 views

### What is the “Energy” equivalent of the Magnitude Spectrum

I have a semantic issue regarding the discrete spectrum $X[k]$ of a time domain signal with limited length $x[n]$, so we're talking about the FFT. Now, when I what to compare the bandwidth and ...
3answers
301 views

### How do the magnitude and phase spectrum of an imaginary function look like?

Say I have the function $$x(t)=j \operatorname{rect}(t)$$ Is the phase spectrum even or odd? I am confused whether the phase spectrum is an odd/even function of $\omega$ (angular frequency, Fourier ...
1answer
94 views

### Why is there a negative in front of the phase response equation for this complex exponential?

first time on here! I'm working through "Digital Signal Processing using MATLAB" by Vinay and Proakis. Good book. I am stuck on this example tho. Shouldn't the imaginary part in the denominator (...
3answers
1k views

### Understanding FFTs for simple Sin / Cos

this is my first question in this forum, and although I read several threads on this side and googled a lot I could not find the answer to my question (maybe it is too basic)? For anyone reading this ...
1answer
2k views

### Calculating the magnitude spectrum and phase spectrum

From a window function $x(t)=u(t+2)-u(t-2)$, we can get the Fourier Transform $X(j\omega)=\frac{2\sin(2\omega)}{\omega}$. Then, I want to calculate its magnitude spectrum and phase spectrum. The ...
3answers
73 views

### Relationship between DFT input sequence and magnitude

Assuming there is a sequence that could look like this: $$x[n] = \{1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0,1, 1, 0, 0, 1, 1, 0, 0,1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0\}$$ Using this sequence, I want to ...
0answers
42 views

### FFT frequency-magnitude not correct when a positive gain EQ point is applied

I have a measurement system, which applies a log sine sweep as stimulus to a DUT and records the return signal. I then extract the impulse response, and perform an FFT on this to examing phase and ...
1answer
248 views

### Correctly scaling FFT of different lengths

I have been looking at using two FFTs of different lengths and displaying the output magnitudes on the same graph (a shorter length window for the higher frequencies, and a longer one for lower ...
0answers
55 views

### Magnitude attenuation by a filter

I have a filter, with coefficients given by $$W=\sin((2*\pi*2*F_f*k/F_s)/(2*\pi*2*F_f*k/F_s))*h[k]$$, where $F_f$ is the filter reference frequency, $k$ runs from $-N/2$ to $N/2$ ($N$ is the order ...
1answer
221 views

2answers
11k views

### How does zero-padding affect the magnitude of the DFT?

Let's simulate sinusoids of two frequencies using the following Matlab code: ...
1answer
909 views

### Recovering signal from magnitude and phase of FFT

I'm trying to code the basics of an analysis-synthesis system on MATLAB, but I'm getting incorrect results. From the Wikipedia page: $$X_k=\lvert X_k\rvert e^{i\angle X_k}$$ Here's a simple MATLAB ...