Adding a second axis
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Matthee Vella
le 19 Août 2016
Commenté : Matthee Vella
le 19 Août 2016
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155854/image.jpeg)
Hi there. Basically I would like to add an axis at the top specifying the location of each of the traces shown in the figure. The locations are stored in a 1x12 array and have the following form:
265 243 221 199 177 155 133 111 89 67 45 23
The values themselves have no meaning for the graph itself I just need them to be plastered there in some way! Thank you.
0 commentaires
Réponse acceptée
Thorsten
le 19 Août 2016
You can use text to place the labels, like
text(150, 0, '265', 'HorizontalAlignment', 'center')
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!