home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 3.ddi / DEMOS.DI$ / LORENZEQ.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  357 b   |  15 lines

  1. function ydot = lorenzeq(t,y)
  2. %LORENZEQ Equation of the Lorenz chaotic attractor.
  3. %    ydot = lorenzeq(t,y).
  4. %    The differential equation is written in almost linear form.
  5.  
  6. %       Copyright (c) 1984-93 by The MathWorks, Inc.
  7.  
  8. global SIGMA RHO BETA
  9.  
  10. A = [ -BETA    0     y(2)  
  11.          0  -SIGMA   SIGMA 
  12.       -y(2)   RHO    -1  ];
  13.  
  14. ydot = A*y;
  15.