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

  1. %WHILE    Repeat statements an indefinite number of times.
  2. %    The general form of a WHILE statement is:
  3. %        WHILE variable, statement, ..., statement, END
  4. %     The statements are executed while the variable has all
  5. %     non-zero elements. The variable is usually the result of
  6. %     expr rop expr where rop is ==, <, >, <=, >=, or ~=.
  7. %     For example (assuming A already defined):
  8. %             E = 0*A; F = E + EYE(E); N = 1;
  9. %             WHILE NORM(E+F-E,1) > 0,
  10. %                E = E + F;
  11. %                F = A*F/N;
  12. %                N = N + 1;
  13. %             END
  14.  
  15. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  16. %    Built-in function.
  17.