x-axis definition
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Inti Vanmechelen
el 21 de Dic. de 2015
Comentada: Inti Vanmechelen
el 22 de Dic. de 2015
Hello,
Another question..
I created a barplot with the command
bar(Duration)
with Duration being a 6x3 matrix. Because the matrix has 6 rows, my stacked bars are called 1, 2, 3, ...6.
I want to change this to the name of 6 muscles. I used axis({names2}), with names2 being a cellary containing the 6 muscle names.
This doesn't work because matlab doens't recognize the cellary while it's in my workspace.
Anyone who can tell me what would be right input?
Thank you!
2 comentarios
Jan
el 21 de Dic. de 2015
If you get an error message, please post it completely. Why do you assume that the axis command is useful to set the names?
Respuesta aceptada
the cyclist
el 21 de Dic. de 2015
Editada: the cyclist
el 21 de Dic. de 2015
set(gca,'XTickLabel',names2)
Más respuestas (0)
Ver también
Categorías
Más información sobre Object Containers en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!