Multiple Character MuPad Subscripts?

46 ビュー (過去 30 日間)
Adam
Adam 2013 年 1 月 11 日
コメント済み: Walter Roberson 2020 年 1 月 19 日
I need to format an equation in MuPad with a subscript greater than one character, and I need to do it very often, so it is impractical to use the Symbol::subScript command over and over. The help doc suggests that there are ways to do this using the ^,_,$,{, and } keys, but it doesn't give the syntax for them. I know that the underscore character works for simply one character subscripts, but I need to be able to typeset for example T_hot - T_cold, where the entire words hot and cold are subscripted. Thanks very much in advance for any help

回答 (2 件)

bym
bym 2013 年 1 月 12 日
try (in MuPad notebook)
t[hot] -t[cold]

AJEET KUMAR
AJEET KUMAR 2020 年 1 月 19 日
編集済み: AJEET KUMAR 2020 年 1 月 19 日
Hello Adam,
Hope you would have solved your problem by now.
Still,
you can use following commands for multiple character subscript.
e.g.
xlabel('temperature (T_{hot}');
xlabel('temperature (T_{cold}');
xlabel('temperature (T_{hot}-T_{cold}');
You can put this as a text and call in any labels or title of the MATLAB plots.
Thanks
Ajeet
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 1 月 19 日
Ajeet: the question was about MuPad notebooks, and programming in the MuPad programming language. MuPad is the internal program for the symbolic engine. MuPad permits creating variables with subscripts as part of the name of the variable that will display in subscripted form in the MuPad notebook.
The matter is not related to displaying subscripts in text created at the MATLAB level.

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

カテゴリ

Help Center および File ExchangeGet Started with MuPAD についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by