What is wrong with this expression, why is MATLAB not being able to understand it?
Mostrar comentarios más antiguos
(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'.
Respuesta aceptada
Más respuestas (1)
Dr. Siva Malla
el 21 de Jun. de 2012
0 votos
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 comentario
Jan
el 21 de Jun. de 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.
Categorías
Más información sobre Discrete Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!