X-label additional text automatically.
Mostrar comentarios más antiguos
Dear all,
I need help about Figures in Matlab. Is it posible to put on x-label two separate texts, for intance one in middle and one od the right edge of figure, but automaticly without command 'text'. For example like in the fig below (I marked it with the red circle):

If I use command xlabel for Frequency then I need to use comand text for (a) and in command tect I need to put cordinates and I do not want to do that for every figure. I need automatical way.
4 comentarios
dpb
el 11 de Dic. de 2020
What's keeping you from just adding the call to text() in the script/function that does the rest of the plot?
Djordje Damnjanovic
el 11 de Dic. de 2020
" I need to do 30 different positioning of text, ..."
Why is it any different? Looks like the axes would be the same or at least very similar.
You have the x values in order to be able to plot the data, code them in, too...text() uses the axes coordinates for location; at worst you have to work out the y coordinate once to align it vertically where desired.
Djordje Damnjanovic
el 11 de Dic. de 2020
Respuesta aceptada
Más respuestas (1)
Djordje Damnjanovic
el 11 de Dic. de 2020
0 votos
Categorías
Más información sobre Labels and Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
