12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

texlabelPurpose2texlabelProduce TeX format from character stringSyntaxDescriptionExamplestexlabel(f)texlabel(f,'literal')texlabel(f) converts the <strong>MATLAB</strong> expression f into the TeX equivalent foruse in text strings. It processes Greek variable names (e.g., lambda, delta, etc.)into a string that displays as actual Greek letters.texlabel(f,'literal') prints Greek variable names as literals.If the string is too long to fit into a figure window, then the center of theexpression is replaced with a tilde ellipsis (~~~).You can use texlabel as an argument to the title, xlabel, ylabel, zlabel,and text commands. For example,title(texlabel('sin(sqrt(x^2 + y^2))/sqrt(x^2 + y^2)'))By default, texlabel translates Greek variable names to the equivalent Greekletter. You can select literal interpretation by including the literal argument.For example, compare these two commands.text(.5,.5,...texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)'))text(.25,.25,...texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)','literal'))2-501

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!