Simulink中的TeX/LateX公式输入

经过一段时间的资料查阅(也可能是我查阅的范围太小了),得出以下结论。

1. 在simulink中是无法输入LateX公式的,也就是意味着下面这种公式是无法输入的:

\dot{x}, \ddot{x}, \hat{x}, \bar{x}, \tilde{x}, \frac{dt}{dx}

2. 能输入的只能是TeX形式的公式,使用TeX标记添加上标和下标,修改字体类型和颜色,并在文本中包含特殊字符。支持以下内容(从MATLAB帮助文件中复制而来):

Modifier Description Example
^{ } Superscript 'text^{superscript}'
_{ } Subscript 'text_{subscript}'
\bf Bold font '\bf text'
\it Italic font '\it text'
\sl Oblique font (usually the same as italic font) '\sl text'
\rm Normal font '\rm text'
\fontname{specifier} Font name — Set specifier as the name of a font family. You can use this in combination with other modifiers. '\fontname{Courier} text'
\fontsize{specifier} Font size — Set specifier as a numeric scalar value in point units to change the font size. '\fontsize{15} text'
\color{specifier} Font color — Set specifer as one of these colors: redgreenyellowmagenta,blueblackwhitegraydarkGreenorange, or lightBlue. '\color{magenta} text'
\color[rgb]{specifier} Custom font color — Set specifier as a three-element RGB triplet. '\color[rgb]{0,0.5,0.5} text'
Character Sequence Symbol Character Sequence Symbol Character Sequence Symbol

\alpha

α

\upsilon

υ

\sim

~

扫描二维码关注公众号,回复: 4982365 查看本文章

\angle

\phi

\leq

\ast

*

\chi

χ

\infty

\beta

β

\psi

ψ

\clubsuit

\gamma

γ

\omega

ω

\diamondsuit

\delta

δ

\Gamma

Γ

\heartsuit

\epsilon

ϵ

\Delta

Δ

\spadesuit

\zeta

ζ

\Theta

Θ

\leftrightarrow

\eta

η

\Lambda

Λ

\leftarrow

\theta

θ

\Xi

Ξ

\Leftarrow

\vartheta

ϑ

\Pi

Π

\uparrow

\iota

ι

\Sigma

Σ

\rightarrow

\kappa

κ

\Upsilon

ϒ

\Rightarrow

\lambda

λ

\Phi

Φ

\downarrow

\mu

µ

\Psi

Ψ

\circ

º

\nu

ν

\Omega

Ω

\pm

±

\xi

ξ

\forall

\geq

\pi

π

\exists

\propto

\rho

ρ

\ni

\partial

\sigma

σ

\cong

\bullet

\varsigma

ς

\approx

\div

÷

\tau

τ

\Re

\neq

\equiv

\oplus

\aleph

\Im

\cup

\wp

\otimes

\subseteq

\oslash

\cap

\in

\supseteq

\supset

\lceil

\subset

\int

\cdot

·

\o

ο

\rfloor

\neg

¬

\nabla

\lfloor

\times

x

\ldots

...

\perp

\surd

\prime

´

\wedge

\varpi

ϖ

\0

\rceil

\rangle

\mid

|

\vee

\langle

\copyright

©

3. 如何改变自己定义的块(Block)的输入、输出等内容:

①首先右键点击block,选择Mask中的Edit Mask。

②  修改弹出窗口中的内容并确认,效果如下图所示:

4. 如何输入LateX形式的公式

①在word中输入一个公式

②复制公式,并粘贴为图片形式:

③选择侧边栏中的图像

④新建图片对象之后,右键,选择粘贴图片

⑤得到了如下图片,手动调整到适合的大小。

注:本文测试基于MATLAB2016B。

猜你喜欢

转载自blog.csdn.net/XSTX1996/article/details/83065823
今日推荐