What's wrong with the folow expression?

Matlab don't accept y=exp(-x)+exp(-0.5*x)*(-0.5*cos(3*x)-3*sin(3*x))
Error using * Inner matrix dimensions must agree.
what's wrong with this?

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Dic. de 2013
Use .*
x=0:10
y=exp(-x)+exp(-0.5*x).*(-0.5*cos(3*x)-3*sin(3*x))

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 2 de Dic. de 2013

Comentada:

el 2 de Dic. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by