Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
index exceeded matrix dimensions please help
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I get this error what should i do to correct this?
Index exceeds matrix dimensions.
Error in t31 (line 11)
F1=Fmag((N/2)+1:N);
my code
N=length(t);
Fshifted=fftshift(F);
Fmag=norm(Fshifted);
F1=Fmag((N/2)+1:N);
F2=Fmag(N/2:-1:1);
2 Kommentare
Walter Roberson
am 16 Apr. 2019
Do not use norm() to find the magnitude of the spectrum. Use abs() .
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!