1
$\begingroup$

I have a progam in matlab that generates a linear and quadratic chirp, and now I want to study the frequency components in wvtool. However, I am not able to decode the frquency domain scale "the normalized frequency". The usual process of deviding the normalized frequency with the sampling frequency doesnot provide the desired value. Please refer to the program and image for details.

Fs = 500;
tf = 1;
t = 0:1/Fs:1;
f1 = 10;
f2 = 90;
slope = (f2-f1)./t(end);

F = f1 + slope* t;
F1 = f1 + slope* t.* t;   
% quadratic chirp
y = 1.33*cos(2*pi*F1.*t);
% linear chirp
y1 = 1.33*cos(2*pi*F.*t);

enter image description here

$\endgroup$
1
$\begingroup$

In order to get the actual frequency of each bin, not normalized frequency, you must compute the following:

fres = fs/fft_size; % Bin spacing
f = fres * (0:fft_size/2); % Bin centers and frequency axis
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.