how do you write the equation f=exp(x)*cos(x)?

6 vues (au cours des 30 derniers jours)
Jennifer Badash
Jennifer Badash le 13 Nov 2017
Commenté : ChangQing Teng le 28 Nov 2019
how do you write the equation f=exp(x)*cos(x)? it is saying that the inner matrix dimensions must agree

Réponse acceptée

James Tursa
James Tursa le 13 Nov 2017
I am guessing you want to use the element-wise multiply operator, which has the dot:
f = exp(x) .* cos(x);

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by