how to plot exponential function

2 次查看(过去 30 天)
Carc
Carc 2023-1-12
评论: Matt J 2023-1-12
I am a novice user of matlab. I want to plot a exponenetail function, but failed. Could you let me know what error I have?
x = (10^-12:100:50);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
plot(x, y)

回答(1 个)

Matt J
Matt J 2023-1-12
编辑:Matt J 2023-1-12
x = linspace(10^-12,50,100);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
loglog(x, y,'x--')

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by