How to plot the frequency spectrum of a signal
조회 수: 5 (최근 30일)
이전 댓글 표시
i have a signal in frequency domain sinc(f/5000)
how can i plot it as a spectrum ?
댓글 수: 0
답변 (1개)
Sai Charan Sampara
2022년 6월 30일
The spectrum of a signal is the magnitude of each frequency components of a signal plotted against frequency. A spectrum is the frequency domain representation of a signal. A time domain signal can be changed to spectrum by using fourier transform. In this case the frequency domain representation of the signal is already given which is the spectrum itself. Plot the function (sinc in this case) against frequency (f) to obtain the spectrum.
f=1:10:100000;
y=sinc(f/5000);
plot(f,y);
댓글 수: 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!