x = 0 to 5 decimal places?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Chris Potts
il 30 Gen 2018
Commentato: Chris Potts
il 30 Gen 2018
Hey guys
I have written a while statement...
"while z(end) ~= 0;"
Basically if z = 0 i want the while loop to end. At the moment my z comes out at 5.6843*10^-14.
This is the closest I'm going to get to 0 and I'm happy for the loop to end. How would I go about setting the while loop to close after 5 decimal places?
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
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!