How to plot these three fucntion X,S and P in one graph with lines

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Torsten
Torsten am 15 Jan. 2023
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])

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by