how do i get the sigmas out of the livescript display?

20 ビュー (過去 30 日間)
Philipp Rupp
Philipp Rupp 2021 年 2 月 10 日
コメント済み: Philipp Rupp 2021 年 2 月 22 日
Hi Everyone,
I am currently working with a very long equation. And when I output it in the livescript, MATLAB finds several sigmas (see screenshot). I would like to have this equation with the sigmas in order to process it in another function.
So far I have tried [r,sigma] = subexpr(expr). I cancelled this command after more than 1 hour of calculation. In addition, subexpr, if I have understood it correctly, only looks for one sigma.
I hope someone here can help me.
I am working with Matla 2017b and the symbolic toolbox

回答 (2 件)

Nikhil Sonavane
Nikhil Sonavane 2021 年 2 月 19 日
Currently, subexpr function gives only one sigma as you correctly mentioned. I have brought this issue to the concerned people and it might be considered in any future release.
  1 件のコメント
Philipp Rupp
Philipp Rupp 2021 年 2 月 22 日
Thanks for the answer.
I have now got one sigma with this command. (It has calculated for several hours)
Which I find strange, because the display from the live script "only" takes a few minutes.

サインインしてコメントする。


Walter Roberson
Walter Roberson 2021 年 2 月 19 日
編集済み: Walter Roberson 2021 年 2 月 19 日
Complete hack:
ML = getMathMLForSym(rxppcol); %undocumented internal function
and parse the returned MathML to decode the sigma expressions
  1 件のコメント
Philipp Rupp
Philipp Rupp 2021 年 2 月 22 日
Thanks for the answer.
Unfortunately the equation is too long. (See screenshot)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by