Grouping bar3 plots like bar
问题 I'm wondering if it is possible to get the same grouping behavior of bar plots into bar3 . For example, if you plot bar(rand(3)); you get 3 bars for each point; bar groups the different y values for each x . Now I would like to do the same with a 3D data. That is that I have several slices of 2D data that I want to visualize as groups of bars. Then, if my data is data = rand(3,3,2); I would like to see data(1,1,:) as a group of bars, and data(1,2,:) as another group and so on. Is it possible?