How to plot these three fucntion X,S and P in one graph with lines
조회 수: 1 (최근 30일)
이전 댓글 표시
t=0:0.5:14;
X0=0.036
Xm=2.24
u0=1.14
S0=41.44
Ms=1.56
Yxs=0.37
Ypx=0.958
dt=0.90
for i=1:28
X=(X0*Xm*exp(u0*t(i)))/(Xm-X0+X0*exp(u0*t(i)));
S=S0-(X0*Xm*exp(u0*t(i)))/(Yxs*(Xm-X0+X0*exp(u0*t(i))))+X0/Yxs-(Xm*Ms/u0)*log((Xm-X0+X0*exp(u0*t(i))/Xm));
P=Ypx*(((X0*Xm*exp(u0*(t(i)-dt)))/(Xm-X0+X0*exp(u0*(t(i)-dt))))-((X0*Xm*exp(-u0*dt)))/(Xm-X0+X0*exp(-u0*dt)));
end
댓글 수: 0
채택된 답변
Torsten
2023년 1월 15일
t=0:0.5:14;
X0=0.036;
Xm=2.24;
u0=1.14;
S0=41.44;
Ms=1.56;
Yxs=0.37;
Ypx=0.958;
dt=0.90;
X=(X0*Xm*exp(u0*t))./(Xm-X0+X0*exp(u0*t));
S=S0-(X0*Xm*exp(u0*t))./(Yxs*(Xm-X0+X0*exp(u0*t)))+X0/Yxs-(Xm*Ms/u0)*log((Xm-X0+X0*exp(u0*t)/Xm));
P=Ypx*(((X0*Xm*exp(u0*(t-dt)))./(Xm-X0+X0*exp(u0*(t-dt))))-((X0*Xm*exp(-u0*dt)))/(Xm-X0+X0*exp(-u0*dt)));
plot(t,[X;S;P])
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
