What causes an "Argument to dynamic structure reference must evaluate to a valid field name" error please? code attached.
2 ビュー (過去 30 日間)
古いコメントを表示
This is my code. I have matlab error saying "Argument to dynamic structure reference must evaluate to a valid field name. Can anyone see a problem please?
freq=-10:0.01:10;
FT2=(1./(2*pi*freq))*(sin.(2*pi*freq))+(1i*cos(2*pi*freq-1.));
Thank you =)
0 件のコメント
回答 (1 件)
David Young
2015 年 3 月 24 日
The dot after sin makes it look like a structure rather than a function call. Omit the dot.
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!