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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by