Viewing Symbolic Matrix Entries in Variable Tab?
Show older comments
Is there a way to view a symbolic matrix in the variable tab instead of the command window? I know I can view it in the command window, but for a larger matrix columns move down into rows and is not a great UI. When opening variable view this is how it displays symbolic entries:
I can only see each entry after double clicking into it. Is there a view option to see the actual equations from the above screen?
Applications are primarily a Jacobian Matrix or any matrix equation with a matrix of derivatives used for numerical methods. I like to symbolically solve the derivative matrix, then use those derived equations in the iteration loop therafter to reduce compilation time by only differentiating once. Viewing the results is a nice sanity check.
Any tips are appreciated. -Charlie
Accepted Answer
More Answers (1)
Steven Lord
on 30 Jan 2023
1 vote
If you're planning to use the symbolic expression in a loop you may want to create a MATLAB function file from it using matlabFunction. You could read the generated code as a check that the expression you're evaluating is what you expect it to be.
1 Comment
Charlie Haimbaugh
on 1 Feb 2023
Categories
Find more on Symbolic Math Toolbox 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!