Seeking trial and Error help

1 visualizzazione (ultimi 30 giorni)
Nasir Qazi
Nasir Qazi il 12 Feb 2012
Pn = 0.18; << Assume Value
Phil, Phiv ( is calualted with some equation using above Pn value
Fv=Pn*phiv;
Fl=Pn*phil; (Fl-Fv) < 0.00001 <<<<<<this is basically a error checking
Trail and error command are starting here
if (Fl-Fv) < 0.00001 <<<< error check so above assume pressure is right and display it if not caluclate another pressure with following relation Pnew = Pn*(phil/phiv); this new pressure will take the place of above assume pressure and again check error check if we got the our error is less then 0.00001 , stop and display the pressure, this is like trial and error and might run in a loop but i dont know how.. need help

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by