how to plot exponential function

7 Ansichten (letzte 30 Tage)
Carc
Carc am 12 Jan. 2023
Kommentiert: Matt J am 12 Jan. 2023
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)

Antworten (1)

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

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by