untexlabel
by Giuseppe Ridinò
08 Jul 2004
(Updated 12 Jul 2004)
Build a string which used with a TeX interpreter shows exactly the string as it is ...
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 6.1 (R12.1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 12 Jul 2004 |
Matthew Simoneau
|
|
|
| 13 Jul 2004 |
Giuseppe Ridinò
|
|
|
| 14 Nov 2005 |
V L
|
|
|
| 14 Nov 2005 |
V L
|
|
|
| 19 Nov 2008 |
Chad Webb
|
|
|
|
Contact us at files@mathworks.com