Borrar filtros
Borrar filtros

I want to plot this equation P(t)=P(0)*e^rt.

6 visualizaciones (últimos 30 días)
Ibrahim Bin Umair
Ibrahim Bin Umair el 12 de Jun. de 2021
Respondida: Mouhamed Niasse el 12 de Jun. de 2021
I want to plot this equation P(t)=P(0)*e^rt. considering P(0) is p nought.
  3 comentarios
Ibrahim Bin Umair
Ibrahim Bin Umair el 12 de Jun. de 2021
No sir the values are not known. Only known for r.
John D'Errico
John D'Errico el 12 de Jun. de 2021
If P0 is not known, then what can you plot, since this is explicitly a function of P0.

Iniciar sesión para comentar.

Respuestas (1)

Mouhamed Niasse
Mouhamed Niasse el 12 de Jun. de 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)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by