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

조회 수: 8 (최근 30일)
Ibrahim Bin Umair
Ibrahim Bin Umair 2021년 6월 12일
답변: Mouhamed Niasse 2021년 6월 12일
I want to plot this equation P(t)=P(0)*e^rt. considering P(0) is p nought.
  댓글 수: 3
Ibrahim Bin Umair
Ibrahim Bin Umair 2021년 6월 12일
No sir the values are not known. Only known for r.
John D'Errico
John D'Errico 2021년 6월 12일
If P0 is not known, then what can you plot, since this is explicitly a function of P0.

댓글을 달려면 로그인하십시오.

답변 (1개)

Mouhamed Niasse
Mouhamed Niasse 2021년 6월 12일
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)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by