08-12.txt
来自「MATLABR2006a基础教程」· 文本 代码 · 共 10 行
TXT
10 行
% bar and barh
A=ceil(rand(5,3)*10);
x=[1,3,6,7,5];
subplot(2,3,1),bar(A),title('bar');
subplot(2,3,2),bar(x,A),title('specify the x label');
subplot(2,3,3),bar(A,1.5),title('width=1.5');
subplot(2,3,4),bar(A,'stacked'),title('stacked');
subplot(2,3,5),barh(A),title('barh: default');
subplot(2,3,6),barh(A,'stacked'),title('barh: stacked');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?