MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Insert Equations into the Live Editor


To describe a mathematical process or method used in your code, insert equations into
your live script or function. Only text lines can contain equations. If you insert an
equation into a code line, MATLAB places the equation into a new text line directly under
the selected code line.

There are two ways to insert an equation into a live script or function.


  • Insert an equation interactively — You can build an equation interactively by selecting
    from a graphical display of symbols and structures.

  • Insert a LaTeX equation — You can enter LaTeX commands and the Live Editor inserts
    the corresponding equation.


Insert Equation Interactively


To insert an equation interactively:

(^1) Go to the Insert tab and click Equation.
A blank equation appears.
19 Live Scripts and Functions

Free download pdf