while
Form
while expression
...
end
Notes
expressionshould be either a logical statement or a scalar.- When
expressionis a scalar, it is treated as true if nonzero and false otherwise.
Example
AUX> vec=[2 8 -1 4]; k=1;
while 1
if vec(k) < 0
break
end
end
AUX> k
k =
3
Current source basis:
while.htmlinhtml-CREATED