How to plot line spectrum in matlab ?
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to plot a spectrum (output of FFT) with a form like the provided image. How do I do it? Because the common plot in matlab is connecting of all point.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194144/image.png)
0 Kommentare
Antworten (2)
Star Strider
am 9 Nov. 2018
Example —
f = 0:0.1:3.5; % Create Frequency Vector
h = exp(-f) + 0.5*rand(size(f)); % Create Amplitude Vector
figure
stem(f, h, 'Marker','none')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!