code for plot figure
Afficher commentaires plus anciens
lamda=0.2;
mu=1-lamda;
P1=mu^2/(mu+lamda)^2;
P2=2*lamda*mu/(mu+lamda)^2;
P3=lamda^2/(mu+lamda)^2;
display(P1);
display(P2);
display(P3);
for t=1:5:100
P11(t)=((mu+lamda)^2)-( 2*lamda)*((mu-lamda)*exp(-(mu-lamda)*t)-mu+(lamda*exp(-2*(mu+lamda)*t)))-(lamda^2)*(2*exp(-mu*t)-2*exp(-(mu+lamda)*t)+1-exp(-2*(mu+lamda)*t));
P22(t)=((-2*lamda)*(mu-lamda)*exp(-(mu+lamda)*t)/(lamda+mu)^2)+(2*lamda*mu/(lamda+mu)^2)-2*(lamda)^2*exp(-2*(mu+lamda)*t);
P33(t)=(lamda^2)/(lamda+mu)*((2*exp(-2*mu*t))-(2*exp(-(mu+lamda)*t))-exp(-2*(mu+lamda)*t)+1);
end
A=P11;
B=P33;
C=P22;
display(A);
display(B);
display(C);
i want tp Plot A,B,C with respect to t
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!