How can I increase the number of Fourier frequencies by adding 500 zeros to the end of the 27-sample-long signal ??

2 ビュー (過去 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.

回答 (2 件)

Matt J
Matt J 2021 年 10 月 24 日
L = length(t)+500;
fftx1=fft(x1, L)

Image Analyst
Image Analyst 2021 年 10 月 24 日

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by