function ydot=lorenfcn(t,y)
ydot=[-8/3*y(1)+y(2)*y(3);
-10*y(2)+10*y(3);
-y(2)*y(1)+35*y(2)-y(3)];
axis([10 50 -50 50 -50 50])
view(3)
hold on
title('Lorenz Attractor')
options=odeset('OutputFcn','odephas3');
[t,y]=ode23(@lorenfcn,[0 20],[0,0,eps],options);
% EPS Floating point relative accuracy.
EPS returns the distance from 1.0 to the next largest
floating point number. EPS is used as a default tolerance by
PINV and RANK, as well as several other MATLAB functions.