can i make a loop for mentioned equation?
Mostrar comentarios más antiguos
hi everybody;
i want to find the value of (Pb_dis) from below equation and then make a loop to put (Pb_dis) value that i found from equation to (Pb1dis) to find (Pb_dis1) and to put the value of (Pb_dis1) to (Pb1dis) again to find (Pb_dis2) and so on . thank you very much i really appreciate it if you help me,
initial Pb1dis =3600 w
this is the equation:
Pb_dis= (Pb1dis*(1-sigma))-((Ppv/nu_i)-PL);
3 comentarios
David Hill
el 16 de Nov. de 2019
You did not describe the other variables/constants. What are sigma, Ppv, nu_i, PL?
Mamad Mamadi
el 16 de Nov. de 2019
Mamad Mamadi
el 22 de Nov. de 2019
Respuestas (2)
JESUS DAVID ARIZA ROYETH
el 16 de Nov. de 2019
It would be something like this :
Pb1dis =inf;
Pb_dis2=3600;
tol=0.0001;%tolerance
while abs(Pb_dis2-Pb_dis)>tol
Pb_dis=Pb1dis2;
Pb_dis2= (Pb1dis*(1-sigma))-((Ppv/nu_i)-PL);
end
disp(Pb_dis2)
wang sir
el 16 de Nov. de 2019
0 votos
HI,dude,I'm sorry,I can't answer you the question because I don't know how to use this software.But I wish we can make friends!
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!