Prevent automatic simplification of a symbolic expression when using the latex command
Show older comments
I have the following expression
f = @(k,n)1.0./n.^(2.0./3.0).*(6.0.^(1.0./3.0).*k.^(1.0./3.0).*4.0-k.*n.^(2.0./3.0).*1.2e1).*(-1.0./3.0)
and when I write
latex(f(k,n))
I get the hideous expression
\frac{12\, k\, n^{\frac{2}{3}} - \frac{8183583624766079\, k^{\frac{1}{3}}}{1125899906842624}}{3\, n^{\frac{2}{3}}}
Obviously matlab is doing some simplifications along the way. Is there any way to get the latex command to output the original expression for f that I typed in, without making any simplifications?
Thanks for any advice
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics 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!