what is the difference in fft(x,1024) and fft(x,2048)?

2 ビュー (過去 30 日間)
amuka anurag
amuka anurag 2021 年 3 月 9 日
編集済み: Matt J 2021 年 3 月 9 日
x=fft(x,1024);
x=fft(x,2048);
x=fft(x);
%what is the difference between all these if i have done zero padding and the length of the signal is 2048 .

回答 (1 件)

Matt J
Matt J 2021 年 3 月 9 日
編集済み: Matt J 2021 年 3 月 9 日
The 2nd and 3rd cases are equivalent. The 1st case is the same as if you had discarded the last 1024 x(i), as can be seen from,
x=rand(1,2048);
isequal( fft(x,1024) ,fft(x(1:1024)) )
ans = logical
1

カテゴリ

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