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

5 visualizzazioni (ultimi 30 giorni)
how do you write the equation f=exp(x)*cos(x)? it is saying that the inner matrix dimensions must agree

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Numerical Integration and Differential Equations in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by