国税局冬季上班时间:Matlab与Latex(公式编辑)
来源:百度文库 编辑:偶看新闻 时间:2024/03/29 19:23:14
作者:佚名 文章来源:http://blog.sina.com.cn/xianfa110
Matlab文本的Interpreter属性使我们能在图形中显示一个较为复杂的公式,例如在公式中除了有希腊字母外,还有分号、根号等数学符号。
当键入:>> set(text,'Interpreter')
Matlab将返回'Interpreter'所包含的属性值:
[ latex | {tex} | none ]。
默认值是tex。
Tex的用法在Matlab的帮助文档里有详细介绍,这里主要介绍一下如何采用latex编辑公式。
在matlab中,Latex编辑公式的基本格式:
\( 数学公式 \),或者$ 数学公式 $,或者$$ 数学公式 $$。
具体的公式编辑命令:
1.上标用^和下表用_,希腊字母与tex一样,即\alpha表示α。
2.求和
$$\sum_{i=1}^{n} x_{i}$$
3.积分
$$ \int_{0}^{1}$$
4.求极限
$$\lim_{n \rightarrow \infty}$$ %n趋于无穷符号在lim正下方
$\lim_{n \rightarrow \infty} $ %趋于无穷符号在lim右下角
5. 分式
$$\frac{1}x$$ %1/x
6. 根式
$$\sqrt{x}$$
7. 上划线
$$\overline{x}$$
8. 下划线
$$\underline{x}$$ %下划线在x的正下方
9.卧式花括号命令
$$\overbrace{x+y+z+w}$$
10.仰式花括号命令
$$a+\underbrace{b+c+d} $$
11.戴帽命令
$$\hat{o}\ \ \check{o}\ \ \breve{o}$$
$$\widehat{A+B} \ \ \widetilde{a+b}$$
$$\vec{\imath}+\vec{\jmath}=\vec{k}$$
12.堆砌命令
$$y\stackrel{\rm def}{=} f(x) \stackrel{x\rightarrow 0}{\rightarrow} A$$
13.省略号
$\cdots \ldots \vdots \ddots $
例:
h = text;
set(h,'Interpreter','latex');
set(h,'string','$$\sum_{i=1}^{n} x_{i}=\int_{0}^{1}f(x)dx$$','position',[0.1,0.5],'FontSize',16);
Matlab文本的Interpreter属性使我们能在图形中显示一个较为复杂的公式,例如在公式中除了有希腊字母外,还有分号、根号等数学符号。
当键入:>> set(text,'Interpreter')
Matlab将返回'Interpreter'所包含的属性值:
[ latex | {tex} | none ]。
默认值是tex。
Tex的用法在Matlab的帮助文档里有详细介绍,这里主要介绍一下如何采用latex编辑公式。
在matlab中,Latex编辑公式的基本格式:
\( 数学公式 \),或者$ 数学公式 $,或者$$ 数学公式 $$。
具体的公式编辑命令:
1.上标用^和下表用_,希腊字母与tex一样,即\alpha表示α。
2.求和
$$\sum_{i=1}^{n} x_{i}$$
3.积分
$$ \int_{0}^{1}$$
4.求极限
$$\lim_{n \rightarrow \infty}$$ %n趋于无穷符号在lim正下方
$\lim_{n \rightarrow \infty} $ %趋于无穷符号在lim右下角
5. 分式
$$\frac{1}x$$ %1/x
6. 根式
$$\sqrt{x}$$
7. 上划线
$$\overline{x}$$
8. 下划线
$$\underline{x}$$ %下划线在x的正下方
9.卧式花括号命令
$$\overbrace{x+y+z+w}$$
10.仰式花括号命令
$$a+\underbrace{b+c+d} $$
11.戴帽命令
$$\hat{o}\ \ \check{o}\ \ \breve{o}$$
$$\widehat{A+B} \ \ \widetilde{a+b}$$
$$\vec{\imath}+\vec{\jmath}=\vec{k}$$
12.堆砌命令
$$y\stackrel{\rm def}{=} f(x) \stackrel{x\rightarrow 0}{\rightarrow} A$$
13.省略号
$\cdots \ldots \vdots \ddots $
例:
h = text;
set(h,'Interpreter','latex');
set(h,'string','$$\sum_{i=1}^{n} x_{i}=\int_{0}^{1}f(x)dx$$','position',[0.1,0.5],'FontSize',16);
请问如何设置编辑Latex原文件的字体大小?
【求助】powerpoint 公式编辑
latex是什么?
LaTeX是什么?
Excel中的公式编辑栏?
物理公式与数学公式(中考)
真讨厌,matlab与紫光拼音
VB与MATLAB接口问题
【求助】组合数公式Cn m的Matlab修改,急
vc++中要用matlab 来拟合公式可以吗?
用公式编辑器编辑的公式颜色能改变吗?
word公式编辑器编辑的公式需要什么字体支持?
如何用word编辑数理化公式
word里面的公式编辑在哪里?
word里为什么没有公式编辑啊?
怎么在WPS2005中编辑化学公式?
如何找回Excel中的公式编辑栏?
Excel 中如何编辑条件运算公式
怎样在 Excel 编辑条件运算公式
翻译 Latex Sex
哪有latex下载?
求Latex数学论文
latex的低级 问题
MATLAB中电路电子系统的建模与仿真(simpowersystem )具体怎么用