how can I fix an error in while loop
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
the two condition of for loops are true, although the function doesn't implement the code under while
while(iter<maxI&dif>Eps)
the error is.
??? Error using ==> and Inputs must have the same size.
Error in ==> sinulator>solve at 356 while(iter<maxI&dif>Eps)
Risposte (1)
Sean de Wolski
il 8 Giu 2011
Apparently iter<maxl is a different size than dif>eps
What is the output of these two commands:
size(iter<maxl)
size(dif)
?
0 Commenti
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!