matlab equation to latex
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ahmet akh
am 25 Apr. 2023
Kommentiert: Walter Roberson
am 10 Mai 2023
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 Kommentare
Nyemwerererai Matshaka
am 10 Mai 2023
Bearbeitet: Nyemwerererai Matshaka
am 10 Mai 2023
can I have the code for conversion?
Walter Roberson
am 10 Mai 2023
What are the rules about where the \displaystyle should be put in?
regexprep(chr, '\\frac', '\\displaystyle\\frac')
Akzeptierte Antwort
Walter Roberson
am 25 Apr. 2023
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Filter Design finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!