Mixing text and output

19 ビュー (過去 30 日間)
Diana
Diana 2021 年 1 月 10 日
編集済み: Yukthi S 2024 年 12 月 10 日 10:50
I wonder if there is a way to write in live editor directly such text
A=[1 0;0 1]
$\mathbf{A}=A$
So the output can be directly converted to latex.

回答 (1 件)

Yukthi S
Yukthi S 2024 年 12 月 10 日 10:49
編集済み: Yukthi S 2024 年 12 月 10 日 10:50
Hi Diana,
Equations can be inserted interactively in the Live Editor. However, for LaTex equations, LaTeX expression dialog box should be used. To do so,
  • Go to the Insert tab, click Equation, and select LaTeX Equation.
  • Enter the below expression in Enter a LaTeX equation code:"
A=\matrix{1 & 0 \cr 0 & 1}
  • Click OK.
You can find more details on the same in the “Insert Equations into the Live Editor” documentation. To access the documentation, type the following two commands in the Command Window of installed MATLAB R2020b:
addressString = 'matlab/matlab_prog/insert-equations.html';
web(fullfile(docroot, addressString));
I hope you find this useful!

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by