latexfigure
The creation of really beautiful and publishable graphs with Matlab is not easy but possible.
However once you want to export your file you run into many problems, which are based on build in problems (bugs) of Matlab which have not been fixed since years.
The two most important bugs are the missing font support and wrong linestyles.
The function 'latexfigure' is an approach to solve this problem. It is basically a wrapper to several existing functions for the solution of these problems.
It was inspired by mlf2pdf and uses matlabfrag to get around the
eps font problem. However I had to patch matlabfrag to support also non math fonts.
The linestyles are corrected using the ‘fix_lines.m’ script from export_fig.
The major drawback of this approach is that it requires a complete LaTeX collection to create a pdf version of the figure, which can than be converted afterwards in the target format using ghostscript.
The code is hosted at https://code.google.com/p/latexfigure/
Citar como
Matthias Pospiech (2024). latexfigure (https://www.mathworks.com/matlabcentral/fileexchange/41894-latexfigure), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: matlabfrag to pdf, Split delimiter separated strings into a matrix, export_fig, savefig
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
example/
latexfigure/
latexfigure/dviconvert/
latexfigure/exportfig/
latexfigure/gsconvert/
latexfigure/matlabfrag/
latexfigure/strsplit/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |