stacked plot x axis change in 2015 matlab version

1 回表示 (過去 30 日間)
SOMNATH MAHATO
SOMNATH MAHATO 2021 年 6 月 9 日
コメント済み: SOMNATH MAHATO 2021 年 6 月 9 日
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)

採用された回答

Joel Lynch
Joel Lynch 2021 年 6 月 9 日
編集済み: Joel Lynch 2021 年 6 月 9 日
bar(Y(:,1),Y(:,2:end))
  3 件のコメント
Joel Lynch
Joel Lynch 2021 年 6 月 9 日
bar(Y(:,1),Y(:,2:end),'stacked')
SOMNATH MAHATO
SOMNATH MAHATO 2021 年 6 月 9 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by