matlab bar3 函数生成的柱形图 的每个柱体的颜色 如何更改答:这个要用程序代码改。代码如下:M=rand(30,20);figure subplot(1,2,1)h=bar3(M)for n=1:numel(h)cdata=get(h(n),'zdata');set(h(n),'cdata',cdata,'facecolor','interp')end subplot(1,2,2)h=bar3(M)for n=1:numel(h)cdata=get(h(n),'zdata');cdata=repmat(max(cdata,[...