yibeimingyue

line()函数可以在画布中画一些辅助线。
line([x的范围],[y的范围])

line([1,2],[3,4])将画出(1,3)到(2,4)的一条直线,而不是(1,2)到(3,4)。

举例:

figure(100);hold on;plot(1:10000,ds(1:10000),\'r.\');
figure(100);hold on;plot(1:10000,ds(1:10000));

figure(100);hold on;plot([0,10000],[0.5,0.5],\'color\',\'r\');

figure(100);hold on;plot([0,10000],[0.5,0.5],\'color\',\'r\',\'LineWidth\',10);

注意:横坐标上有100万个数据点,需要画一条直线y=0.5.

 

分类:

技术点:

相关文章:

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