how to plot exponential function

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)

Respuestas (1)

Matt J
Matt J el 12 de En. de 2023
Editada: Matt J el 12 de En. de 2023
x = linspace(10^-12,50,100);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
loglog(x, y,'x--')

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

el 12 de En. de 2023

Comentada:

el 12 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by