フィルターのクリア

All input options for fft so I can correctly do fft with respect to a single dimension in multidimensional array.

2 ビュー (過去 30 日間)
So I have a array A with dimensions [x y z t] of size [64 64 64 19] and I want to take the fft for every [x y z] position with respect to t. For this I thought I could evaluate B=fft(A, [], 4); taking the fft with respect to the fourth dimension. However if i then take for instance B(32,32,32,:) it is not the same as fft(A(32,32,32,:)). What am I doing wrong? Has it got to do with the [] input for fft? Nowhere in the documentation can I find how to use those brackets.

採用された回答

Matt J
Matt J 2013 年 9 月 23 日
編集済み: Matt J 2013 年 9 月 23 日
However if i then take for instance B(32,32,32,:) it is not the same as fft(A(32,32,32,:)). What am I doing wrong?
I can't reproduce this observation, I'm afraid. As an experiment, I have done
A=rand(64,64,64,19);
B=fft(A,[],4);
C=fft(A(32,32,32,:));
Then at the command line, I find the agreement expected
>> isequal(B(32,32,32,:),C)
ans =
1
  1 件のコメント
Lennart
Lennart 2013 年 9 月 23 日
編集済み: Lennart 2013 年 9 月 23 日
Hmm then my code must have an error somewhere else... strange. Ill check again. thanks anyways

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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