1. Calculate and plot the FFT of pulses of width 11 and 251 samples. Compare the Fourier spectra with those you would expect from theory
1 view (last 30 days)
Show older comments
Number_Of_Samples = 2^10; % the number of samples to be generated
% the ' symbols in the two lines below change a row vector into a column vector
T = (0:Number_Of_Samples-1)'/Number_Of_Samples; % these are the equally spaced sample times
Freq = ( -Number_Of_Samples/2:Number_Of_Samples/2-1 )'; % these are the frequencies present in the sampled sequence
% ******************************************************
% ** Plot a pulse and its Fourier Transform **
% ******************************************************
% Define pulse signal of the given width
Width = 21; % pulse width in samples: use an odd number for best results
Signal = Pulse(Width,Number_Of_Samples);
0 Comments
Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!