I have to increase the number of Fourier frequencies by adding 500 zeros to the end of the 27-sample-long signal.

조회 수: 1 (최근 30일)
fs = 250;
t = 0:1/fs:0.107;
L = length(t);
x1 = sin(2*pi*50*t)+0.3;
fftx1=fft(x1)
freqHz = (0:1:length(x1)-1)*fs/L;
plot(freqHz,fftx1,'-o')
I have to increase the number of Fourier frequencies by adding 500 zeros to the end of the 27-sample-long signal.

답변 (1개)

Image Analyst
Image Analyst 2021년 10월 24일
This is a duplicate question. I answered it here:
where I said to just assign the 527'th element to zero.
x1(527) - 0;

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by