[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/lang]

while

(/tools/hpmatlab/toolbox/matlab/lang/while.m)


Help text

WHILE	Repeat statements an indefinite number of times.
	The general form of a WHILE statement is:
 
 	   WHILE variable, statement, ..., statement, END
 
 	The statements are executed while the variable has all
 	non-zero elements. The variable is usually the result of
 	expr rop expr where rop is ==, <, >, <=, >=, or ~=.
 	For example (assuming A already defined):
 
 	        E = 0*A; F = E + EYE(E); N = 1;
 	        WHILE NORM(E+F-E,1) > 0,
 	           E = E + F;
 	           F = A*F/N;
 	           N = N + 1;
 	        END

Cross-Reference Information

This is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON