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

1 visualización (últimos 30 días)
*
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*

Respuestas (1)

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

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by