Filter löschen
Filter löschen

how can I fix an error in while loop

1 Ansicht (letzte 30 Tage)
Eman Ahmed Elsayed
Eman Ahmed Elsayed am 8 Jun. 2011
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 Kommentar
Eman Ahmed Elsayed
Eman Ahmed Elsayed am 8 Jun. 2011
where Eps is always a double number like 0.01,0.0001
and dif is large number or small number

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sean de Wolski
Sean de Wolski am 8 Jun. 2011
Apparently iter<maxl is a different size than dif>eps
What is the output of these two commands:
size(iter<maxl)
size(dif)
?

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by