CTAN masthead graphic CTAN lion sketch

Directory: CTAN home / tex-archive/ graphics/ metapost/ contrib/ macros/ matlab

You can get this entire directory bundled as matlab.zip.

Packages located here

Package Caption
metapost-matlab MetaPost data plotting in Matlab style.

Subdirectories of this one

There are no subdirectories here.

Files in this directory

NameDateSize Description
Makefile 2005-03-07 406 bytes download
README 2005-03-07 1 Kbyte download Shown below
example.mp 2005-03-08 533 bytes download
latexmp.mp 2005-04-07 15 Kbyte download
lstmp.tex 2005-03-07 4 Kbyte download
matlab.mp 2005-03-08 9 Kbyte download
matlab.tex 2005-03-08 5 Kbyte download
sample_data 2005-03-08 266 bytes download
simple.mp 2005-03-08 700 bytes download
user_guide.pdf 2005-03-08 54 Kbyte download

Contents of the README file

matlab.mp ------- Metapost data plotting in matlab style

Yang Yang yangyang@juggler.ucsd.edu

March 3 2005


Matlab has powerful data plotting ability, but one annoying problem
prevents it from being perfect: when you increase the linewidth, the
dotted line size stays the same, so the plotted line no longer looks
like a dotted line.

another problem is matlab bug: it oftern cuts away some curves and
captions.

plus, matlab is expensive. on the other hand, the free gnuplot also
doesn't produce very satisfactory visual effects.


I got accustomed to matlab's easy interface. so I want to integerate
the powerful graphic function of Metapost and the easy interface of
Matlab. so I wrote this script matlab.mp. this is based on graph.mp, I
just collected the data into 2-D arrays, and remembered the line
styles, so it's easy to plot out legends.

FEATURES:
all kinds of line color, width, style (dotted/dashed, etc), and
markers. you can easily expand this by modifying the code.

easy interface. very similar to matlab

full power of latex in caption/legends, by using the latexmp package.





Small print: This listing is regenerated periodically so there is a small chance that the directory has changed from what is shown here; to be sure, check the FTP listing.