for fft(matrix) end

1 visualizzazione (ultimi 30 giorni)
Amit
Amit il 3 Feb 2012
Modificato: Jan il 28 Set 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 Commento
Amit
Amit il 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.

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by