Octave绘图

 plot绘制简单的二维图 >> x = -10:0.1:10; >> plot (x, sin (x)); >> xlabel ("x"); >> ylabel ("sin (x)"); >> title ("Simple 2-D Plot"); 步骤: 定义自变量的取值区间 定义函数 figure 创建图纸 plot(...) 在图纸上绘制x,y的二维图 hold on (在当前图上继续绘图)
相关文章
相关标签/搜索