t = 0:pi/50:10*pi;
t = [t nan];
st = sin(t);
ct = cos(t);
patch(t,st,ct,t,'edgecolor','flat','FaceColor','none','LineWidth',2);
view(3);
grid on;
colorbar
注意:没有nan会导致首尾有条连线
2024-01-24 23:25:34
t = 0:pi/50:10*pi;
t = [t nan];
st = sin(t);
ct = cos(t);
patch(t,st,ct,t,'edgecolor','flat','FaceColor','none','LineWidth',2);
view(3);
grid on;
colorbar
注意:没有nan会导致首尾有条连线