How do I place Greek characters in my plot? Where can I find a list of all TeX characters and commands that can be used in MATLAB?

3 次查看(过去 30 天)
I want to place Greek characters in my plot. I would like a list of all TeX characters and commands that can be used in MATLAB.
I would like to display an ANSI-chart in MATLAB which shows the different characters that can be produced for a font.

采纳的回答

MathWorks Support Team
MATLAB 5.0 and later support a subset of TeX commands. For a complete listing of the supported TeX commands, refer to the following URL:
<http://www.mathworks.com/access/helpdesk/help/techdoc/ref/text_props.html#String>
Here is an example that shows how to use the summation symbol by using its TeX command:
figure
plot(1:10)
text(5,5,'\Sigma')
As an alternative workaround, you can download a TeX implementer and use it in conjunction with the "teximage.m" file. The "teximage.m" file is a user-contributed function available for download from the MATLAB Central File Exchange. This file can be used to display a LaTeX string as an image. You can download this file from the following URL:
<http://www.mathworks.com/matlabcentral/fileexchange/1231>
NOTE: MathWorks does not guarantee or warrant the use or content of those submissions. Any questions, issues, or complaints should be directed to the contributing author.
The file is highly recommended by other users.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by