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

34 visualizaciones (últimos 30 días)
Josh Heffron
Josh Heffron el 29 de Sept. de 2020
Editada: James Tursa el 29 de Sept. de 2020
Where would I need to put periods in this function?

Respuestas (1)

James Tursa
James Tursa el 29 de Sept. de 2020
Editada: James Tursa el 29 de Sept. de 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.

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by