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?

 採用された回答

Walter Roberson
Walter Roberson 2020 年 5 月 10 日

0 投票

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

5 件のコメント

Florian
Florian 2020 年 5 月 10 日
So are 'interpreter' and 'latex' additional toolboxes in Matlab?
Florian
Florian 2020 年 5 月 10 日
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?
Walter Roberson
Walter Roberson 2020 年 5 月 10 日
text(0.5,0.5,'$\stackrel{mytext}{\downarrow}$','interpreter','latex', 'fontsize', 50)
Florian
Florian 2020 年 5 月 10 日
Thanks Walter!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeText Data Preparation についてさらに検索

質問済み:

2020 年 5 月 10 日

コメント済み:

2020 年 5 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by