stacked plot x axis change in 2015 matlab version

1 vue (au cours des 30 derniers jours)
SOMNATH MAHATO
SOMNATH MAHATO le 9 Juin 2021
Commenté : SOMNATH MAHATO le 9 Juin 2021
Y=[ 1 9 5 4 20
6 6 7 5 19
10 10 6 5 21]
need stacked plot of these data. But x axis would be 1, 6, 10 and y axis stacked bar data (9,5,4,20), (6,7,5,19) and (10,6,5,21)

Réponse acceptée

Joel Lynch
Joel Lynch le 9 Juin 2021
Modifié(e) : Joel Lynch le 9 Juin 2021
bar(Y(:,1),Y(:,2:end))
  3 commentaires
Joel Lynch
Joel Lynch le 9 Juin 2021
bar(Y(:,1),Y(:,2:end),'stacked')
SOMNATH MAHATO
SOMNATH MAHATO le 9 Juin 2021
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by