cooldog123pp 发表于 2023-10-27 19:41

matlab--柱状图

function shili26
h0=figure('toolbar','none',...
    'position',,...
    'name','实例26');
subplot(2,1,1)
x=[5 2 1
    8 7 3
    9 8 6
    5 5 5
    4 3 2];
bar(x)
xlabel('X轴');
ylabel('Y轴');
title('第一子图');

subplot(2,1,2)
y=[5 2 1
    8 7 3
    9 8 6
    5 5 5
    4 3 2];
barh(y)
xlabel('X轴');
ylabel('Y轴');
title('第二子图');

页: [1]
查看完整版本: matlab--柱状图