青年梦想家 发表于 2015-7-25 00:12

【奠基经典】MATLAB实用程序案例之柱状图的绘制







柱状图的绘制
实例:
function shili26
h0=figure('toolbar','none',...

'position',,...
'name','实例26');
subplot(2,1,1)
x=
8 7 3
9 8 6
5 5 5
4 3 2];
bar(x)
xlabel('X轴');
ylabel('Y轴');
title('第一子图');
subplot(2,1,2)
y=
8 7 3
9 8 6
5 5 5
4 3 2];
barh(y)
xlabel('X轴');
ylabel('Y轴');
title('第二子图');


关于本帖内容欢迎大家踊跃讨论,与在下交流!

页: [1]
查看完整版本: 【奠基经典】MATLAB实用程序案例之柱状图的绘制