Representing Symbolic Variables as Equations in Live Scripts
Show older comments
I would like to represent the content of symbolic variables as equations in a Live Script.
So far i'm trying with texlabel function:
texlabel(dtheta)
ans = '({L_{2}} ({L_{2}}^{2} - {L_{1}}^{2} - {2} {W} {w} + {W}^{2} + {w}^{2}))/({2} {L_{1}}^{2} ({W} - {w})^{3} ({1} - ({L_{1}}^{2} - {L_{2}}^{2} + ({W} - {w})^{2})^{2}/({4} {L_{1}}^{2} ({W} - {w})^{2}))^{{3}/{2}})'
Then I copy the output Tex expression into an equation, pasting as LaTex expression:

However, it doesn't recognize the fraccions.
I can see that, by clicking the variable in the LiveScript, the expression appears perfectly.
Is there any better way to do it?
Thank you very much.
Accepted Answer
More Answers (0)
Categories
Find more on Labels and Annotations 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!