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

16 vues (au cours des 30 derniers jours)
Philipp Rupp
Philipp Rupp le 10 Fév 2021
Commenté : Philipp Rupp le 22 Fév 2021
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

Réponses (2)

Nikhil Sonavane
Nikhil Sonavane le 19 Fév 2021
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 commentaire
Philipp Rupp
Philipp Rupp le 22 Fév 2021
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.

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 19 Fév 2021
Modifié(e) : Walter Roberson le 19 Fév 2021
Complete hack:
ML = getMathMLForSym(rxppcol); %undocumented internal function
and parse the returned MathML to decode the sigma expressions
  1 commentaire
Philipp Rupp
Philipp Rupp le 22 Fév 2021
Thanks for the answer.
Unfortunately the equation is too long. (See screenshot)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by