Blogn - 记录个人历史 Ver 3.0.0
http://www.bloggern.com
首页  留言本  注册  用户名: 密码:  
关于Matlab绘图中的下标问题解决方案
作者:hankerer   783字节   点击:16521   回复:0   所属分类:
创建时间:2010-01-05 16:33:20   最后修改时间:2010-01-05 16:33:20  

上标用 ^(指数)


下标用 _(下划线)

希腊字母等特殊字符用 \加拼音 如

α \alpha

β \beta

γ \gamma

θ \theta

Θ \Theta

Г \Gamma

δ \delta

Δ \Delta

ξ \xi

Ξ \Xi

η \elta

ε \epsilong

ζ \zeta

μ \miu

υ \nu

τ \tau

λ \lamda

Λ \Lamda

π \pi

Π \Pi

σ \sigma

Σ \Sigma

φ \phi

Φ \Phi

ψ \psi

Ψ \Psi

χ \chi

ω \ommiga

Ω \Ommiga

< \leq

> \geq

不等于 \neq

<< \ll

>> \gg

正负 \pm

左箭头 \leftarrow

右箭头 \rightarrow

上箭头 \uparrow

例 text(2,3,'\alpha_2^\beta')

注: 可用{}把须放在一起的括起来
附件:
1
2
评论:
来自: hankerer   字节:1042  ID:17931  发贴时间:2011-05-23 11:04:57  原贴 
Matlab 图像上的各类字体设置 text properties

此外,Mathtpye公式编辑器中漂亮的字体,是Times New Roman字体的斜体格式

可以这样设置

xlabel('\itx','Fontname','Times New Roman')



搜索matlab help中的 text properties



\bf — Bold font

\it — Italic font

\sl — Oblique font (rarely available)

\rm — Normal font

\fontname{fontname} — Specify the name of the font family to use.

\fontsize{fontsize} — Specify the font size in FontUnits.

\color(colorSpec) — Specify color for succeeding characters





_和^用于下标和上标

如果需要显示_ ^ { }这些特殊字符,在前面加\,例如 \\, \{, \} \_, \^.

The subscript character "_" and the superscript character "^" modify the character or substring defined in braces immediately following.

To print the special characters used to define the TeX strings when Interpreter is Tex, prefix them with the backslash "\" character: \\, \{, \} \_, \^.
 

本文只允许登录用户评论