How to plot line spectrum in matlab ?
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Star Strider
2018-11-9
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!