Borrar filtros
Borrar filtros

How do I plot an equation?

1 visualización (últimos 30 días)
Caitlin Schmidt
Caitlin Schmidt el 14 de Sept. de 2021
Respondida: Voss el 30 de Abr. de 2022
How would I be able to plot the following equation into matlab : y=e^(-x/0.005)?

Respuestas (1)

Voss
Voss el 30 de Abr. de 2022
One way:
x = -0.02:0.0001:0.02;
y = exp(-x/0.005);
plot(x,y)
Another way:
y = @(x)exp(-x/0.005);
fplot(y,[-0.02 0.02])

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by