首页 > 代码库 > matlib二维图形绘制
matlib二维图形绘制
subplot(2,4,1)
t=[3,10 20 5]
explode1 = [0 0 0 1] %将1对应的部分分离
explode2 = [0 1 1 0]
pie(t,explode2)
subplot(2,4,2)
x=0:1:10;
y=exp(x);
bar(x,y) %绘制柱形图
axis()
subplot(2,4,3)
compass([5+5i,10-5i]) %绘制向量图
subplot(2,4,4)
fill(x,y,‘g‘);
subplot(2,4,5)
stem(x,y)
subplot(2,4,6)
area(x,y)
subplot(2,4,7)
stairs(x,y)
subplot(2,4,8)
%在3 5 处创建宽15长8 的圆角矩形
rectangle(‘Position‘,[3,5,15,8],‘Curvature‘,0.4,‘LineWidth‘,2)
axis();
matlib二维图形绘制
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。