How to plot line spectrum in matlab ?
조회 수: 14 (최근 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에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!