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

采纳的回答

Torsten
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 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by