What causes an "Argument to dynamic structure reference must evaluate to a valid field name" error please? code attached.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
David Young
am 24 Mär. 2015
The dot after sin makes it look like a structure rather than a function call. Omit the dot.
Siehe auch
Kategorien
Mehr zu Structures 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!