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

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

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

ModifierDescriptionExample^{ }Superscript'text^{superscript}'_{ }Subscript'text_{subscript}'\bfBold font'\bf text'\itItalic font'\it text'\slOblique font (usually the same as italic font)'\sl text'\rmNormal 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: red, green, yellow, magenta,blue, black, white, gray, darkGreen, orange, 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 SequenceSymbolCharacter SequenceSymbolCharacter SequenceSymbol \alpha  α  \upsilon  υ  \sim  ~  \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。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐