Effacer les filtres
Effacer les filtres

Plotting horizontal stack bars in MATLAB

1 vue (au cours des 30 derniers jours)
Sowmya MR
Sowmya MR le 18 Avr 2017
Modifié(e) : Sowmya MR le 18 Avr 2017
Hi all,
I have three vectors and i want to plot them as horizontal colored stack bars with units as well. Have provided an image of the expected output. Can someone please help me how to do this in MATLAB?
x1=[2*ones(1,2) 4*ones(1,1) 6*ones(1,2)];
x2=[0.2*ones(1,2) 0.4*ones(1,1) 0.6*ones(1,2)];
x3=[20*ones(1,2) 40*ones(1,1) 60*ones(1,2)];

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by