- /
-
Green Apple
on 29 Oct 2021
- 7
- 21
- 0
- 0
- 280
%Attractor
t =0:2e-4:30; %
% dyn
[~,o]=ode23s(@f,t,[.1 0 0]);
patch(o(:,1),o(:,2),o(:,3),t);
set(gca,'Xdir','reverse')
colormap(summer);
line([1.1 .4],[-.3 .4],'Color','r',LineW=8)
axis square off
% equation
function q=f(t,X)
x=X(1);
y=X(2);
z=X(3);
a=.2; b=-.01; c=1; d=-.4; e=-1; E=-1;
q=[x*a + c*y*z;
b*x + d*y-x*z;
e*z + E*x*y];
end