matlab equation to latex
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ahmet akh
el 25 de Abr. de 2023
Comentada: Walter Roberson
el 10 de Mayo de 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 comentarios
Nyemwerererai Matshaka
el 10 de Mayo de 2023
Editada: Nyemwerererai Matshaka
el 10 de Mayo de 2023
can I have the code for conversion?
Walter Roberson
el 10 de Mayo de 2023
What are the rules about where the \displaystyle should be put in?
regexprep(chr, '\\frac', '\\displaystyle\\frac')
Respuesta aceptada
Walter Roberson
el 25 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Filter Design en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!