• Remix
  • Share
  • New Entry

  • Teodo

  • /
  • MATLAB's Heartbeat

on 8 Nov 2023
  • 7
  • 24
  • 0
  • 0
  • 246
drawframe(1);
Write your drawframe function below
function drawframe(f)
t=linspace(-0.75,0.75,240);
[A,B] = meshgrid (t,t);
C=10.*(5+(-sqrt(1-A.^2)-(B-abs(A).^2)).*cos(30.*(1-A.^2-(B-abs(A)).^2+1/(25*f))));
colormap(jet)
patch(surf2patch(surf(A,B,C)),'FaceColor','interp')
view([30 68])
axis off
shading interp
lightangle(-45,30)
end
Animation
Remix Tree