I have 3 matrices A, B and C where each of them is of size 21x2. I use bar to plot each one separately. I'm wondering how I can plot the three together using bar3?
So using this code:
A=rand(21,2);
B=rand(21,2);
C=rand(21,2);
fig=figure();b1=bar(A);
fig2=figure();b2=bar(B);
fig3=figure();b3=bar(C);
will generate these three figures:
A:

B:

C:

And what I want to do is that I want them to be all the the same figure but plotted behind each other in the z direction to be something like this
bar3(x,y)so I am assuming you have a problem somewhere else. Maybe the values of the data? Show us a MCVE.xandy? I just have a 3 matrices of size21x2which I would normally plot them separately usingbar. But now I don't know how to plot them separately but still in the same graph if you understand what I mean.