• Remix
  • Share
  • New Entry

on 21 Nov 2023
  • 8
  • 13
  • 0
  • 0
  • 516
drawframe(1);
a = 0
x = 1×100
5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000 5.6000
y = 1×100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
x1 = 1×100
2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000 2.8000
y1 = 1×100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MeshDensity = 1500
Write your drawframe function below
function drawframe(f)
t = linspace(0,10*pi);
h = linspace(0,2*pi,1000);
a=h(f)
x=2.8*cos(a*t)+ 7.84*(sqrt(100*sin(2*a*t).*sin(2*a*t)+7.84*cos(2*a*t).*cos(2*a*t))).^(-1).*cos(a*t)
y=2.8*sin(a*t)+ 7.84*(sqrt(100*sin(t).*sin(t)+7.84*cos(20*a*t).*cos(20*a*t))).^(-1).*sin(a*t)
x1=0.5*(2.8*cos(a*t)+7.84*(sqrt(100*sin(2*a*t).*sin(2*a*t)+7.84*cos(2*a*t).*cos(2*a*t))).^(-1).*cos(a*t))
y1=0.5*(2.8*sin(a*t)+7.84*(sqrt(100*sin(t).*sin(t)+7.84*cos(20*a*t).*cos(20*a*t))).^(-1).*sin(a*t))
plot(x,y,x1,y1)
MeshDensity=1500
axis equal
axis([-8 8 -12 12])
end
Animation
Remix Tree