%Solution for the Lorenz equations in the time interval [0,100] with initial conditions [1,1,1]. sigma=10; beta=8/3; rho=28; f = @(t,a) [-sigma*a(1) + sigma*a(2); rho*a(1) - a(2) - a(1)*a(3); -beta*a(3) + a(1)*a(2)]; %'f' is the set of differential equations and 'a' is an array containing values of x,y, and z variables. %'t' is the time variable [t,a] = ode45(f,[0 100],[1 1 1]); plot3(a(:,1),a(:,2),a(:,3))