How to insert values on top of Each bar in Matlab also with names on x-axis.

조회 수: 1 (최근 30일)
Tulasi Ram Tammu
Tulasi Ram Tammu 2016년 7월 5일
편집: Thorsten 2016년 7월 5일
*
with this code I am getting grouped bars with names on x-axis. now I would like to show the values of each bar on top of it, same like Excel*

답변 (1개)

Thorsten
Thorsten 2016년 7월 5일
편집: Thorsten 2016년 7월 5일
Use
text(x, value, num2str(value))
and find out the appropriate values for x, and use 'VerticalAlignment', 'top' for negative values.

카테고리

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