how can I fix an error in while loop
1 回表示 (過去 30 日間)
古いコメントを表示
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)
回答 (1 件)
Sean de Wolski
2011 年 6 月 8 日
Apparently iter<maxl is a different size than dif>eps
What is the output of these two commands:
size(iter<maxl)
size(dif)
?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!