gca
ax = gca
ax = gca 返回当前图窗的当前坐标区或图
可以使用 ax 访问和修改该坐标区或图的属性。如果该坐标区或图不存在,gca 将创建笛卡尔坐标区。
set函数
set(gca,参数)
这里介绍一下常用的参数,更多的可以参看matlab文档
具体参见:
http://ww2.mathworks.cn/help/matlab/ref/matlab.graphics.axis.axes-properties.html
xlable(’’) ylable(’’) 添加标签
legend(’’) 图例 (注意顺序)
scatter函数 画散点图
例如
scatter(xr, yr, 10, ‘filled’, ‘MarkerFaceColor’,
‘r’);
出自http://ww2.mathworks.cn/help/matlab/ref/scatter.html?searchHighlight=scatter&s_tid=doc_srchtitle#btrj9jn-1-mkr
具体scatter参数见http://ww2.mathworks.cn/help/matlab/ref/matlab.graphics.chart.primitive.scatter-properties.html