place down error underneath text string

Hi all,
to place a down arrow for a text annotation in a plot I can use...
text(0.5,0.5,'\downarrow mytext')
..which puts the arrow to the left of the text or...
text(0.5,0.5,'mytext \downarrow')
which put the error to the right of the text.
What is the code for placing the down arrow underneath the text string?

 Réponse acceptée

Walter Roberson
Walter Roberson le 10 Mai 2020
'$\stackrel{mytext}{\downarrow}$'
with 'interpreter', 'latex'

5 commentaires

Florian
Florian le 10 Mai 2020
So are 'interpreter' and 'latex' additional toolboxes in Matlab?
I got it! The full code is...
text(0.5,0.5,'$\stackrel{mytext}{\downarrow}$','interpreter','latex')
The only problem: the resulting text becomes very small (see attached). Is there a way to enlarge it?
text(0.5,0.5,'$\stackrel{mytext}{\downarrow}$','interpreter','latex', 'fontsize', 50)
Florian
Florian le 10 Mai 2020
Thanks Walter!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by