• Remix
  • Share
  • New Entry

on 18 Nov 2023
  • 4
  • 2
  • 0
  • 0
  • 463
drawframe(1);
Write your drawframe function below
function drawframe(p)
j=1;X(1)=-.72; Y(1)=-.64;
A=0.9;B=-0.6013;C=2.5;D=.5;
q=0.7+p*0.01;
for i=1:1000
X(i+1)= ( X(i)/(1+(1-X(i))*(1-q)) )^2-( Y(i)/(1+(1-Y(i))*(1-q)) )^2+A*( X(i)/(1+(1-X(i))*(1-q)) )+B*( Y(i)/(1+(1-Y(i))*(1-q)) );
Y(i+1)= 2*( X(i)/(1+(1-X(i))*(1-q)) )*((Y(i) )/(1+(1-Y(i))*(1-q)))+C*( X(i)/(1+(1-X(i))*(1-q)) )+D*( Y(i)/(1+(1-Y(i))*(1-q)) );
if(i>900)
bi(j,1)=q;
bi(j,2)=X(i+1);
bi(j,3)=Y(i+1);
j=j+1;
end
end
plot3(bi(:,2),bi(:,3),bi(:,1),'.')
hold on
axis([ -1.5 2 -2 1 0.70 0.9])
axis off
end
Animation
Remix Tree