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

if

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


Help text

IF  	Conditionally execute statements.
	The general form of an IF statement is:
 	        IF variable, statements, END
 	The statements are executed if the real part of the variable 
 	has all non-zero elements. The variable is usually the result of
 	expr rop expr where rop is ==, <, >, <=, >=, or ~=.
 	For example:
 
 	       IF I == J
 	          A(I,J) = 2;
 	       ELSEIF ABS(I-J) == 1
 	          A(I,J) = -1;
 	       ELSE
 	          A(I,J) = 0;
 	       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