home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / LANG.DI$ / IF.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  572 b   |  19 lines

  1. %IF      Conditionally execute statements.
  2. %    The general form of an IF statement is:
  3. %             IF variable, statements, END
  4. %     The statements are executed if the real part of the variable 
  5. %     has all non-zero elements. The variable is usually the result of
  6. %     expr rop expr where rop is ==, <, >, <=, >=, or ~=.
  7. %     For example:
  8. %            IF I == J
  9. %               A(I,J) = 2;
  10. %            ELSEIF ABS(I-J) == 1
  11. %               A(I,J) = -1;
  12. %            ELSE
  13. %               A(I,J) = 0;
  14. %            END
  15.  
  16. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  17. %    Built-in function.
  18.