I want to plot this equation P(t)=P(0)*e^rt.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to plot this equation P(t)=P(0)*e^rt. considering P(0) is p nought.
3 commentaires
John D'Errico
le 12 Juin 2021
If P0 is not known, then what can you plot, since this is explicitly a function of P0.
Réponses (1)
Mouhamed Niasse
le 12 Juin 2021
xlim1=0; xlim2=10;
r=1; P0=1;
% I supposed you will define r and P(0) as constants, and the limits xlim1
% and xlim2 are known:
t=linspace(xlim1,xlim2);
P=P0*exp(r*t);
plot(t,P)
0 commentaires
Voir également
Catégories
En savoir plus sur Thermal Analysis dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!