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

6 Ansichten (letzte 30 Tage)
Jennifer Badash
Jennifer Badash am 13 Nov. 2017
Kommentiert: ChangQing Teng am 28 Nov. 2019
how do you write the equation f=exp(x)*cos(x)? it is saying that the inner matrix dimensions must agree

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by