二维高层绘图的基本函数
plot函数
plot(x,y);
要求:x,y为相同长度向量。
特殊用法:
标注:
基本标注函数:
title
xlabel
ylabel
text
legend
特殊字符:
LaTeX
二维绘图的辅助操作
标注:图形名称
坐标轴名称
曲线标注
图例
坐标轴控制:
axis equal 显示正方形坐标轴
axis square
axis auto
axis off 坐标轴关
axis on 坐标轴开
axis[xmin xmax ymin ymax]
xlim[xmin xmax] x坐标轴范围
ylim[ymin ymax] y坐标轴的范围
图形保持
hold on
hold off
窗口分割
subplot
基本底层绘图函数
line对象和line函数
h=line();