matlab equation to latex
Show older comments
Hello,
I am trying to convert a matlab equation to latex using a script like:
chr = latex(x^2 + 1/x)
The output is :'\frac{1}{x}+x^2'
Are there anyway to include '\displaystyle' before \frac
2 Comments
Nyemwerererai Matshaka
on 10 May 2023
Edited: Nyemwerererai Matshaka
on 10 May 2023
can I have the code for conversion?
Walter Roberson
on 10 May 2023
What are the rules about where the \displaystyle should be put in?
regexprep(chr, '\\frac', '\\displaystyle\\frac')
Accepted Answer
More Answers (0)
Categories
Find more on LaTeX 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!