Creating latex formulas in Live Script (without an editor).

2 ビュー (過去 30 日間)
reincornator
reincornator 2021 年 2 月 18 日
回答済み: Walter Roberson 2021 年 2 月 18 日
Hello.
You need to display the entire formula, but the final result does not match the expected result.
Here's what happens:
Here's how it should be:
Please tell me the solution. Thanks.
syms E_vec_dot_i;
Ei = E_vec_dot_i
vE_i=sym('E_dot_i__',[n;1])
qw= Ei==vE_i

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 2 月 18 日
You cannot get that requested output directly from the Symbolic Toolbox in Live Script. The only time the Symbolic Toolbox is willing to output name = ARRAY is if you display() a variable, the way you display vE_i to the command line. However in such cases, the Symbolic Toolbox will not pretty-print the variable name -- notice that you got vE_i on the display, not
You might be able to generate the relevant latex using latex(vE_i) and appropriate other latex() for the left side. Unfortunately, Live Script does not offer any facility to render calculated latex.

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by