matlab equation to latex
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
Nyemwerererai Matshaka
2023-5-10
编辑:Nyemwerererai Matshaka
2023-5-10
can I have the code for conversion?
Walter Roberson
2023-5-10
What are the rules about where the \displaystyle should be put in?
regexprep(chr, '\\frac', '\\displaystyle\\frac')
采纳的回答
Walter Roberson
2023-4-25
The latex function does not have any option to add that in automatically, so you would need to use text manipulation to add it in.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!