Changing Format of Symbolic Expression
2 views (last 30 days)
Show older comments
I am trying out some symbolic expressions in Matlab and was wondering if I could change the format of the result?
Basically I have written a script that produces a 4x4 matrix consisting out of rather long expressions. These expressions are presented afterwards like this
This is not very easy to read and I would like the expression to just be a long expression. Not one divided into parts. Is this possible?
Here is my code
2 Comments
Walter Roberson
on 28 Oct 2019
You appear to be looking in the Variable Explorer. As best I recall, there is no way to control the format of symbolic expressions there.
In the command window, when disp() is being used, then "one long expression" is the default, and getting the arrangement like you posted a copy of requires using pretty()
Note: the rules are probably different in LiveScript. You might need to char() the symbolic expression in LiveScript, perhaps.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!