Create a Vector for Amplitude Spectrum Plot
이전 댓글 표시
Hi, I need to create a program that plots the ampltitude spectrum of a signal with two inputs: Signal and Nyqyust Frequency (phi) and output F which is the FFT of the signal.
How do I create a vector for the x axis which is filled with the frequency values (Hz) which are: 0, 1/N*tau. 2/N*tau, ..., phi, -phi+1/N*tau, -phi+2/N*tau, ..., -1/N*tau ?? Where the first N/2+1 elements of the FFT are positive up to Phi and then it is followed by N/2-1 negative frequencies.
Thanks !
답변 (0개)
카테고리
도움말 센터 및 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!