I know how to draw a grouped BAR plot and a stacked BAR plot as follows:
Y = round(rand(5,4)*10);
figure;
subplot(2,2,1); bar(Y,'grouped'); title('Group') % similar for 'hist'/'histc'
subplot(2,2,2); bar(Y,'stacked'); title('Stack')
This will generate something like:

My question is that how can I combine options grouped and stacked in a BAR plot to be able to generate a figure like the following (stack 3,4 together)? Or is there any alternative way to achieve this? P.S. I manually drew the following figure.

