What is wrong with this expression, why is MATLAB not being able to understand it?
Mostra commenti meno recenti
(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'.
Risposta accettata
Più risposte (1)
Dr. Siva Malla
il 21 Giu 2012
0 voti
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 Commento
Jan
il 21 Giu 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.
Categorie
Scopri di più su Discrete Math in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!