How would I write the function of f(x)=sin(x)*exp(-x/10)
25 views (last 30 days)
Show older comments
Where would I need to put periods in this function?
0 Comments
Answers (1)
James Tursa
on 29 Sep 2020
Edited: James Tursa
on 29 Sep 2020
The multiply. E.g.,
f = @(x) sin(x) .* exp(-x/10);
You don't need it on the divide because you are dividing by a scalar.
0 Comments
See Also
Categories
Find more on Operators and Elementary Operations 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!