?? 6-4.m
字號(hào):
Y = round(rand(5,3)*10); %隨機(jī)函數(shù)產(chǎn)生5*3的數(shù)組,對(duì)產(chǎn)生的數(shù)據(jù)取整
subplot(2,2,1)
bar(Y,'group')
title 'Group'
subplot(2,2,2)
bar(Y,'stack') %堆型二維垂直條形圖
title 'Stack'
subplot(2,2,3)
barh(Y,'stack') %堆型二維水平條形圖
title 'Stack'
subplot(2,2,4)
bar(Y,1.5) %設(shè)定條形的寬度為1.5
title 'Width = 1.5'
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -