How would I write the function of f(x)=sin(x)*exp(-x/10)
8 次查看(过去 30 天)
显示 更早的评论
Where would I need to put periods in this function?
0 个评论
回答(1 个)
James Tursa
2020-9-29
编辑:James Tursa
2020-9-29
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!