how do you write the equation f=exp(x)*cos(x)?
7 views (last 30 days)
Show older comments
Jennifer Badash
on 13 Nov 2017
Commented: ChangQing Teng
on 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 Comments
Accepted Answer
James Tursa
on 13 Nov 2017
I am guessing you want to use the element-wise multiply operator, which has the dot:
f = exp(x) .* cos(x);
More Answers (0)
See Also
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!