how do you write the equation f=exp(x)*cos(x)?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponse acceptée
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)
Voir également
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!