6-5.m

来自「一本很不错的教程,适合初学者,希望对各位爱好者有一定的帮助.」· M 代码 · 共 22 行

M
22
字号
Y = [1 2 3 4 5 6 7;
        1 2 3 4 3 2 1;
    7 6 5 4 3 2 1];
subplot(3,2,1)
bar3(Y,'detached')
title('Detached')
subplot(3,2,2)
bar3(Y,0.25,'detached')
title('Width = 0.25')
subplot(3,2,3)
bar3(Y,'grouped')
title('Grouped')
subplot(3,2,4)
bar3(Y,0.5,'grouped')
title('Width = 0.5')
subplot(3,2,5)
bar3(Y,'stacked')
title('Stacked')
subplot(3,2,6)
bar3h(Y,0.3,'stacked')
title('Width = 0.3')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?