- /
-
droplet
on 17 Oct 2021
- 1
- 12
- 0
- 0
- 200
figure('color','k')
hold on
n=100;
u=linspace(0,2*pi,3*n);
v=linspace(-1,3,3*n);
x = (1+v/2.* cos(u/2)).*cos(u)';
y = (1+v/2.* cos(u/2)).*sin(u)';
z = (v/2).*sin(u/2)';
rgb={'r','g','b'}
%for k=1:3
% plot3(x(n*k-99:n*k),y(n*k-99:n*k),z(n*k-99:n*k),rgb{k})
%end
plot3(x,y,z)
%view(85,-78)
view([.3,.2,.1])
%axis([-1 1 -1 1],'off')