Filter löschen
Filter löschen

for fft(matrix) end

3 Ansichten (letzte 30 Tage)
Amit
Amit am 3 Feb. 2012
Bearbeitet: Jan am 28 Sep. 2013
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 Kommentar
Amit
Amit am 3 Feb. 2012
if i m simply a=fft, it just results in single n by n matrix, whereas right output must be i no. of matrices.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Feb. 2012
a(:,:,k) = fft(matrix);
  1 Kommentar
Amit
Amit am 3 Feb. 2012
Thanks Walter, It works.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by