Why text is not centered?
Afficher commentaires plus anciens
text(x,y','FontSize',12,'HorizontalAlignment', 'center') but the inf is not in the center (look at picture)

2 commentaires
dpb
le 6 Sep 2019
We can't reproduce -- don't have x, y and there's no text argument so the above wouldn't even execute w/o error.
>> axes
>> xlim([0 10]),ylim([0 10])
>> x=5;y=5;
>> text(x,y','FontSize',12,'HorizontalAlignment', 'center')
Error using text
Invalid parameter/value pair arguments
>>
Réponses (1)
Walter Roberson
le 6 Sep 2019
0 votes
Because you have spaces in the text to be output.
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!