ヘルプ センターヘルプ センター
TeX 文字を使用したテキストの書式設定
txt = texlabel(f)
txt = texlabel(f,'literal')
例
txt = texlabel(f) は、テキストで使用できるように、MATLAB® 表現 f を TeX 表現に変換します。texlabel はギリシャ語の変数名 (ラムダ、デルタなど) をギリシャ文字として表示される文字ベクトルに変換します。txt 出力は title、xlabel、text などの注釈関数への引数として使用できます。
f
texlabel
txt
title
xlabel
text
txt = texlabel(f,'literal') は、ギリシャ文字の変数名を文字どおりに解釈します。
すべて折りたたむ
ラインをプロットします。TeX 文字を含むテキストを作成し、そのテキストをライン プロットに追加します。
plot((1:10).^2) txt = texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)'); text(3,90,txt)
引数 'literal' を含めた場合、texlabel はギリシャ文字の変数名を文字どおりに解釈します。リテラル変数名があるテキストをライン プロットに追加します。
'literal'
text(4,60,texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)','literal'))
入力 MATLAB 式。文字ベクトルまたは string スカラーとして指定します。
例: 'theta (degrees)'
'theta (degrees)'
R2006a より前に導入
text | title | xlabel | ylabel | zlabel
ylabel
zlabel
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office