What is wrong with this expression, why is MATLAB not being able to understand it?
Ältere Kommentare anzeigen
(50*y).*(28.065*cos(60*t+0.2094395101999999*x)+22.7058*cos(2*(60*t+0.2094395101999999*x))+15.1368*cos(3*(60*t+0.2094395101999999*x))+7.014*cos(4*(60*t+0.2094395101999999*x));
The error given is 'unexpected paranthesis'.
Akzeptierte Antwort
Weitere Antworten (1)
Dr. Siva Malla
am 21 Jun. 2012
0 Stimmen
this is correct:
(50*y)*(28.065*cos(60*t+0.2094395101999999*x))+22.7058*cos(2*(60*t+0.2094395101999999*x))+15.1368*cos(3*(60*t+0.2094395101999999*x))+7.014*cos(4*(60*t+0.2094395101999999*x));
1 Kommentar
Jan
am 21 Jun. 2012
I agree that it is likely, that there is no COS inside the argument of a COS, but I would not dare to call this correct without asking the OP before.
Kategorien
Mehr zu Operators and Elementary Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!