gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-24/Ex2407.m
%例24-7 三维柱状图 %Ex24-7 bar3 bar3h clear x=rand(3,10); subplot(2,2,1) bar(x) title('bar') subplot(2,2,2) barh(x,'stack') title('barh-stack') subplot(2,2,3) bar3(x) title('bar3') subplot(2,2,4) bar3h(x,'stack') title('bar3h-stack')