필터 지우기
필터 지우기

create figure with multiple bars

조회 수: 1 (최근 30일)
Brave A
Brave A 2019년 4월 14일
편집: Walter Roberson 2019년 4월 14일
I need code represent same this figure.
thanks in advance!

채택된 답변

Walter Roberson
Walter Roberson 2019년 4월 14일
bar() with 'stacked' option or 'Horizontal'. text() the labels you want into place. "hold on" and bar() again for the JAMA entry; you might need to use the 'baseline' property for it. It might be easier to just use fill() to draw the JAMA box.
  댓글 수: 2
Brave A
Brave A 2019년 4월 14일
Would give more details about the answer please.
Walter Roberson
Walter Roberson 2019년 4월 14일
편집: Walter Roberson 2019년 4월 14일
vals = [46.535 42.967 31.798 29.526 31.086 32.626 40.899 66.560 158.890 548.002];
bar(vals, 'horizontal', true, 'barwidth', 1);
yticklabels({'2048', '1024', '512', '256', '128', '64', '32', '16', '1:8', '1:4', ''})

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by