필터 지우기
필터 지우기

how can I fix an error in while loop

조회 수: 1 (최근 30일)
Eman Ahmed Elsayed
Eman Ahmed Elsayed 2011년 6월 8일
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
Eman Ahmed Elsayed
Eman Ahmed Elsayed 2011년 6월 8일
where Eps is always a double number like 0.01,0.0001
and dif is large number or small number

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean de Wolski
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)
?

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by