untexlabel

Build a string which used with a TeX interpreter shows exactly the string as it is ...
ダウンロード: 1.2K
更新 2004/7/12

ライセンスがありません

This function is useful to create a string label which use a Tex interpreter and avoid that character as "_" or "^" or "/" are iterpreted as Tex commands.

Example:
MYSTR = 'mydir\bfx_0.dat';

If you use MYSTR in a text object with the Tex interpreter activated, it will show something unexpected because "\bf" and "_" will be considered as Tex commands and will produce the relative output on the screen (see text function help for details).

If you use untexlabel(MYSTR) in the text object, than the string will be shown exactly as it is.
Furthermore you could use, for example, ['\bf',untexlabel(MYSTR)] as text string to show it all as bold font.

引用

Giuseppe Ridinò (2024). untexlabel (https://www.mathworks.com/matlabcentral/fileexchange/5442-untexlabel), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12.1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0