• Remix
  • Share
  • New Entry

on 3 Oct 2022
  • 3
  • 16
  • 0
  • 0
  • 150
clc
clear
u=linspace(0,2*pi,100);
v=linspace(0,2*pi,100);
[u v]=meshgrid(u,v);
x=(3+cos(u)).*cos(v);
y=(3+cos(u)).*sin(v);
z=sin(u);
surf(x,y,z)
colormap(autumn(30))
Image
Remix Tree