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?

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 2 Déc 2013
Use .*
x=0:10
y=exp(-x)+exp(-0.5*x).*(-0.5*cos(3*x)-3*sin(3*x))

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by