MATLAB Function ブロックにおける引数の特殊文字表記について

6 views (last 30 days)
koya tanaka
koya tanaka on 25 Jun 2018
Commented: Etsuo Maeda on 29 Jun 2018
いつもお世話になっております。
Simulinkライブラリブラウザ > Simulink > User-Defined Functions > MATLAB Function で独自の関数を作ることができるのですが、TeXのように上付き文字や下付き文字・ギリシャ文字などの特殊な文字の表記をエディターにて設定できるようにするためには、どのようにすればよろしいのでしょうか?
アルファベットの上に乗っかる微分の点やチルダやバーを出せるようにしたいです。

Accepted Answer

Etsuo Maeda
Etsuo Maeda on 28 Jun 2018
当該のMATLAB FunctionをMaskしてからMask Editorを起動し、Icon&Portsのタブでport_labelコマンドを使えばTeX文法でラベルを作ることができます。
Mask Editor: https://jp.mathworks.com/help/simulink/gui/mask-editor-overview.html
port_label: https://jp.mathworks.com/help/simulink/slref/port_label.html
2018年6月27日~2018年7月27日の期間は、MATLAB Answers回答キャンペーンを実施していますので、回答にもチャレンジしてみてください。
  2 Comments
koya tanaka
koya tanaka on 28 Jun 2018
Etsuo Maedaさん
回答ありがとうございます。
を確認したところ。ほとんどの記号を意図通りに記すことが出来ましたが、
文字の真上に来る点や線を示すことができませんでした。
例えば port_label('input',15,'$\dot{c}$','texmode','on');
のようなものがうまく出てくれていません。
どのようにすれば、cの真上にドットが来てくれるのでしょうか?
Etsuo Maeda
Etsuo Maeda on 29 Jun 2018
$\dot{c}$はLaTeXの文法です。
残念ながら、port_labelはinterpreterとしてLaTeXを受け付けません。

Sign in to comment.

More Answers (0)

Categories

Find more on Author Block Masks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!