フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Extraction of FFT from each segment for computation

1 回表示 (過去 30 日間)
Chloe Sim
Chloe Sim 2020 年 2 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello! I have a code doing splitting of data size of 51200 into segments of 512 and did a FFT on each segment.
How do I extract the FFT from each of the 512 segment ?
  1 件のコメント
Sindar
Sindar 2020 年 2 月 16 日
Your question is unclear. What's already working and what do you need?

回答 (1 件)

Star Strider
Star Strider 2020 年 2 月 16 日
If this relates to your earlier Question, the fft results are in each column of the ’P1’ matrix.
Y = fft(X-mean(X)); % FFT
f = Fs*(0:(L/2))/L;
P2 = abs(Y/L);
P1 = P2(1:numel(f),:); % Note: Added Column Dimension (I Did Not Catch That Omission Earlier)
so the first fft would be:
FT_1 = P1(:,1);
and so for the rest.
  4 件のコメント
Chloe Sim
Chloe Sim 2020 年 2 月 18 日
Hello! Thank you for the fast response!
Is the code above showing each FFT of each segment? :)
Star Strider
Star Strider 2020 年 2 月 18 日
It is showing the fft for the segments (columns) you choose. In that example, I plotted columns 1 and 20.
To show all of them in the same axes at the same time:
figure
plot(f, P2(1:numel(f),:)
grid
Experiment to get different results.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by