数据的可视化模型

线形图(plot)


简易线性函数图(ezplot)

ezplot('x^2/9+y^2/4-1')

散点图(scatter)


极坐标图及其与直角坐标图的转换(polar)
极坐标转换成直角坐标的书写格式
[x,y]=pol2cart(theta,rho)
theta为模向量与横坐标的夹角向量,弧度表示。rho为模差长度的向量。
直角坐标转换极坐标:
[theta,rho]=cart2pol(x,y)
条形图

魔方矩阵的条形图
>> y=magic(4)
y =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
>> subplot(1,2,1)
>> bar(y)
>> subplot(1,2,2)
>> bar(y,'stacked')

饼图(pie)

阶梯图(stairs)

茎干图(stem)

平面多边形的着色(fill)


7599

被折叠的 条评论
为什么被折叠?



