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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Mai 2020

0 Stimmen

'$\stackrel{mytext}{\downarrow}$'
with 'interpreter', 'latex'

5 Kommentare

Florian
Florian am 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 am 10 Mai 2020
Thanks Walter!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by