time position in graphic
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali Golmohammadi
le 5 Mai 2021
Commenté : Ali Golmohammadi
le 5 Mai 2021
i would like to know how can i display my time position instead of title with code num2str () '%4i' in bottom right. The data comes from an excel table.
0 commentaires
Réponse acceptée
Chad Greene
le 5 Mai 2021
This question is pretty vague, but here's pi displayed at the bottom right corner of a plot:
txt = text(1,0,num2str(pi,'%4i'),'horiz','right','vert','bot','units','normalized');
3 commentaires
Chad Greene
le 5 Mai 2021
For the Excel question I recommend opening a separate question specifically about that part of your question.
To add words to the text, put it in square brackets, like this:
txt = text(1,0,['Easy as ',num2str(pi,'%4i')],'horiz','right','vert','bot','units','normalized');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets 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!