![555.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195231/555.png)
Plotting 3d bar garphs using bar3
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can I plot three matrices in one 3d bar figure with a legend including 3 items?
I have 3 matrices:
x1=rand(5,10);
x2=rand(5,10);
x3=rand(5*10);
I want to plot them in one 3d bar figure with a legend including 3 items.
Is it possible with bar3 function?
Thanks
0 comentarios
Respuestas (1)
KALYAN ACHARJYA
el 16 de Nov. de 2018
See all x1,x2,x3 are three different 2d variables, how can you mix all these, how do you distinguish eash other?
You can plot them in three different graphs-
x1=rand(5,10);
x2=rand(5,10);
x3=rand(5,10);
subplot(131),bar3(x1);
subplot(132);bar3(x2),
subplot(133);bar3(x3);
![555.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195231/555.png)
1 comentario
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!