liq07lzucn

粘贴代码

% 插入参数曲线h
% 插入辅助线h1
% 并设置颜色,包括画布颜色和曲线颜色

t=-pi:0.1:pi;
x=cos(t)-sin(3*t);
y=sin(t).*cos(t)-cos(3*t);
h=plot(x,y);
hold on
h1=refline(1,0.5);%辅助线的使用,第一个参数是斜率,第二个是offset
set(gca,\'color\',\'yellow\');%画布颜色
set(h,\'color\',\'blue\');%参数曲线颜色
set(h1,\'color\',\'red\');%辅助线颜色

 参考《matlab教程》例1.1,二维和三维函数

 

分类:

技术点:

相关文章:

  • 2022-02-08
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2022-01-01
  • 2021-04-10
  • 2021-11-20
相关资源
相似解决方案