Info
この質問は閉じられています。 編集または回答するには再度開いてください。
index exceeded matrix dimensions please help
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2019 年 4 月 16 日
Do not use norm() to find the magnitude of the spectrum. Use abs() .
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!