matlab2dplot2datafi​le

compress large plot datasets from matlab plots to a data file (txt/csv/dat) for data visualization using TikZ/pgfplots in LaTeX
50 Downloads
Updated 22 Feb 2019

This simple tool that helps to automate your Matlab To LaTeX workflow
It obtains data from a compressed matlab 2D-plot and exports to a specified
file name in *.txt, *.csv, or *.dat for beautiful scientific plots or datavisualization
with the pgfplots package in LaTeX.
%
Comes bundled with Tucker McClure's LinePlotReducer script.
%
Useful for researchers writing Papers,
and have a good knowledge of the pgfplots package
%
To get up and running with this script, see the example file.
It contains 4 implementation examples.

Cite As

Oluwasegun Somefun (2026). matlab2dplot2datafile (https://github.com/somefunAgba/matlab2dplot2datafile), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Geology in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Plot (Big), matfig2pgfdata(filename,m,n)

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.