How would I write the function of f(x)=sin(x)*exp(-x/10)

31 次查看(过去 30 天)
Where would I need to put periods in this function?

回答(1 个)

James Tursa
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.

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by