- /
-
Ninja Shuriken
on 20 Oct 2021
- 14
- 27
- 0
- 0
- 280
%%Rossler Attractor
T=60;
t=0:.5:T;
%% solving chaotic dynamics
[~,y]=ode15s(@f,t,[1 2 0]); %Init 1 2 0
% Plotting
%figure('Color','k')
set([gcf,gca],'Color','k');
colormap(hsv);
shading interp
patch(y(:,1),2*y(:,2),y(:,3),t,'EdgeC','w',LineW=1);
view(0,-10) %shuriken
%% Accidental Ninja gadget
function S=f(t,X)
x = X(1);
y =X(2);
z =X(3);
a=415;%
b=1;c=25.58;d=-1;
e=0;
Gx=e*x+(d+e)*(abs(x+1)-abs(x-1));
S = [a*(y-x-Gx);
b*(x-y+z);
-c*y];
end