要画一条颜色渐变的曲线,从网上找了段代码
  t=[linspace(0,2*pi) nan];

  x=sin(t);
  y=cos(2*t);z=sqrt(t);%所要绘制的曲线方程

  patch(x,y,z,z,'edgecolor','flat','facecolor','none')
  view(3);
  grid on;

就是这么画的,哈哈~

效果图,自己复制代码到matlab里跑一下就能看到了。

相关文章:

  • 2021-12-16
  • 2021-12-04
  • 2021-12-26
  • 2022-12-23
  • 2021-12-05
  • 2021-12-05
  • 2021-04-28
猜你喜欢
  • 2021-09-16
  • 2021-05-19
  • 2022-12-23
  • 2021-05-29
  • 2021-12-23
  • 2021-12-08
  • 2022-02-27
相关资源
相似解决方案