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

1 Ansicht (letzte 30 Tage)
*
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*

Antworten (1)

Thorsten
Thorsten am 5 Jul. 2016
Bearbeitet: Thorsten am 5 Jul. 2016
Use
text(x, value, num2str(value))
and find out the appropriate values for x, and use 'VerticalAlignment', 'top' for negative values.

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by