how do i get the sigmas out of the livescript display?
12 views (last 30 days)
Show older comments
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

0 Comments
Answers (2)
Nikhil Sonavane
on 19 Feb 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.
Walter Roberson
on 19 Feb 2021
Edited: Walter Roberson
on 19 Feb 2021
Complete hack:
ML = getMathMLForSym(rxppcol); %undocumented internal function
and parse the returned MathML to decode the sigma expressions
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!