Bar3 function inputs for multiple data plots (detached style)?

3 visualizzazioni (ultimi 30 giorni)
Hi everyone, I have the following data and code to represent 3 different data sets as frequency plots using bar3 detached style. I have studied the description of bar3 and tried to plot bar3 but unfortunately couldn't succeed in getting required results. Kindly advise me how should I input the function to get the results in detached style currently I am getting them in stacked style(figure) which is not default for bar3.
% Bar3 plot
A34=[8
5
3
2
3
2
2
4
5
5
1
6
2
2
1
4
2
1
6
NaN
NaN
NaN
NaN
];
A24=[2
7
1
3
5
1
6
4
10
9
1
2
4
3
0
3
4
4
2
3
2
2
4
];
A35=[5
4
4
3
3
1
7
2
2
0
6
4
2
4
5
6
1
5
1
2
1
NaN
NaN
];
% N=Frequency, X=Position
[N34,X34]=hist(A34,[1:max(A34)]);
[N24,X24]=hist(A24,[1:max(A24)]);
[N35,X35]=hist(A35,[1:max(A35)]);
X=[X34,X24,X35];
Y=[N34,N24,N35];
Z=bar3(X,Y);

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by