5-1 ��������?

]Bar Charts^SOAΩֶqBơCeXϡAi bar OAҦpG

Example 1: 05-Sϧ/bar01.mx = [1 3 4 5 2]; bar(x);

bar O]ix}JA|NP@CƻEb@_AҦpG

Example 2: 05-Sϧ/bar02.m x = [2 3 4 5 7; 1 2 3 2 1]; bar(x);

YneXϡAhiH barh OAykM bar OۦPAAحzAŪ̥iۦոլݡC

bar barh O٦@S\ANOiHNP@CƥH|]Stack^覡ܡAҦpG

Example 3: 05-Sϧ/bar03.mx = [2 3 4 5 7; 1 2 3 2 1]; bar(x,'stack')

FϤ~AMATLAB iϥ bar3 OӵeXϡApUG

Example 4: 05-Sϧ/bar04.mx = [2 3 4 5 7; 1 2 3 2 1]; bar3(x)

bar3 O٥iHϥθsա]Group^覡ӧe{ϡG

Example 5: 05-Sϧ/bar05.mx = [2 3 4 5 7; 1 2 3 2 1]; bar3(x, 'group')

e{ϡAi bar3h OAykM bar3 ۦPAbAحzC

O
bar barh
bar3 bar3h

YnwϪ x yСAiϥΨӿJVq bar OC]x_륭ūצpUG

Example 6: 05-Sϧ/bar06.mx = 1:6; % y = 35*rand(1, 6); % ū׭ȡ]]O 035 üơ^ bar(x, y); xlabel(''); % x br ylabel('ū (^{o}c)'); % y br % UCON x bƥئr令 set(gca, 'xticklabel', {'@','G','T', '|', '', ''});

bWҪ̫@C{XAgca Ǧ^ثe϶bAxticklabelhNb x bWC@ӼIrAӾC{XYܨϥΡ@롨BG롨Nثe϶bW x bIrCݩ Handle GraphicsAԱШĤCu⦡ϧλP GUI ]pvC


MATLAB{]pGJg