I wanna stop iteration when two matrixes difference approach zero.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
for example,
A=[a;b;c;d;e;f;g;h] %double 7x1
B=[m;n;v;x;z;p;j] %double 7x1
I open while loop for equation and I wanna stop when A-B is equal approximately zero, but it never be zero.
if I write
while A-B~=0
do "........."
infinite loop occuring.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!