• Remix
  • Share
  • New Entry

on 27 Nov 2023
  • 24
  • 14
  • 0
  • 0
  • 207
drawframe(1);
Write your drawframe function below
function drawframe(f)
%https://in.mathworks.com/matlabcentral/communitycontests/contests/4/entries/1036
[y,x] = meshgrid(-90:1.5:90,-90:1.5:90);
r = sqrt((x+f/10).^2+(y+f/10).^2);
Phi = angle(x+y*1i);
z = sin(exp(0.04*r+2)+Phi);
surf(x,y,z), shading interp;
colormap('gray');
set(gcf,'Color','k');
axis equal, axis off;
view(2);
end
Animation
Remix Tree