How do I plot an equation?

1 次查看(过去 30 天)
Caitlin Schmidt
Caitlin Schmidt 2021-9-14
回答: Voss 2022-4-30
How would I be able to plot the following equation into matlab : y=e^(-x/0.005)?

回答(1 个)

Voss
Voss 2022-4-30
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])

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by