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?

 采纳的回答

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

5 个评论

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)

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Text Data Preparation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by