其他分享
首页 > 其他分享> > matlab绘制旋转渐变曲线图

matlab绘制旋转渐变曲线图

作者:互联网

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会导致首尾有条连线
在这里插入图片描述

标签:edgecolor,LineWidth,曲线图,渐变,nan,st,matlab,pi,ct
来源: https://blog.csdn.net/m0_37761144/article/details/112644971