how to plot exponential function

2 vues (au cours des 30 derniers jours)
Carc
Carc le 12 Jan 2023
Commenté : Matt J le 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)

Réponses (1)

Matt J
Matt J le 12 Jan 2023
Modifié(e) : Matt J le 12 Jan 2023
x = linspace(10^-12,50,100);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
loglog(x, y,'x--')
  1 commentaire
Matt J
Matt J le 12 Jan 2023
If you don't know, nobody does.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by