a=zeros(n,n,k)
for i=1:k
a(i)=fft(matrix);
end
I am get the error as
??? In an assignment A(:) = B, the number of elements
in A and B
must be the same.
What can I do, Plz help

1 件のコメント

Amit
Amit 2012 年 2 月 3 日
if i m simply a=fft, it just results in single n by n matrix, whereas right output must be i no. of matrices.

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

 採用された回答

Walter Roberson
Walter Roberson 2012 年 2 月 3 日

1 投票

a(:,:,k) = fft(matrix);

1 件のコメント

Amit
Amit 2012 年 2 月 3 日
Thanks Walter, It works.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeColor and Styling についてさらに検索

質問済み:

2012 年 2 月 3 日

編集済み:

Jan
2013 年 9 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by