Celebrate the 20th Anniversary with plain donuts

Sudharsana Iyengar
on 25 Oct 2021
- 2
- 43
- 1
- 0
- 249
t = 0:0.01:1;
[x,y,z] = cylinder(2 + sqrt(1 - t.*t));
[a,b,c] = cylinder(2 - sqrt(1 - t.*t));
surf(x,y,z,'LineStyle', 'n');
hold on
surf(x,y,-z, 'LineStyle', 'n' );
surf(a,b,c,'LineStyle', 'n');
surf(a,b,-c,'LineStyle', 'n');
axis tight equal off;
colormap('copper');