• Remix
  • Share
  • New Entry

on 24 Nov 2023
  • 4
  • 6
  • 0
  • 0
  • 261
drawframe(1);
Write your drawframe function below
function drawframe(f)
x(1)=0;y(1)=0;
A=7.16878197155893; B=8.43659746693447 ;C=2.55983412731439;
for i=1:100000
x(i+1)=y(i)-1-sqrt(abs(B*x(i)-x(i)-C))*sign(x(i)-1);
y(i+1)=A-x(i)-1;
end
i=100*(f);
plot(x(i:i+99),y(i:i+99),'.','color',rand(1,3),'markersize',4)
hold on
axis([-60 60 -60 60])
axis off
end
Animation
Remix Tree