clear all
close all
clc
a=3;%决定图形胖瘦
b=4;%决定花瓣个数
t=0:pi/50:4*pi;%角度[0,2*pi]
x=cos(t).*a.*(sin(b.*t));
y=sin(t).*a.*(sin(b.*t));
z= t
plot3(x,y,z,'-')
axis equal
clear all
close all
clc
t=0:pi/50:8*pi; %角度[0,2*pi]
x=t.*cos(t);
y=t.*sin(t);
z=t;
plot3(x,y,z,'-')
axis equal