matfig2pgfdata(file​name,m,n)

Simple exporting and reducing data shown in matlab figures for pgfplots

Sie verfolgen jetzt diese Einreichung

A small function that captures the currently visible data in a matlab line plot and exports to a data file instantly readable with pgfplots in latex. It is based on and needs the reduce_to_width function by Tucker McClure available here:
https://github.com/tuckermcclure/matlab-plot-big/blob/master/reduce_to_width.m
Its automatically reduces the number of samples to the minimum to reproduce the displayed matlab graph in the pgf axes. Works also with zoomed data. Note that the reduction results depend on the figure width and height.

Zitieren als

Jörg Petzold (2026). matfig2pgfdata(filename,m,n) (https://de.mathworks.com/matlabcentral/fileexchange/65987-matfig2pgfdata-filename-m-n), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: Plot (Big)

Inspiriert: matlab2dplot2datafile

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0