Code covered by the BSD License  

Highlights from
matlabfrag

matlabfrag

by

 

01 Sep 2008 (Updated )

A matlab figure to .eps and .tex file exporter, similar to LaPrint

ex04.m
%% Preamble -- not to appear in userguide
hfig = figure;
set(hfig,'units','centimeters','NumberTitle','off','Name','ex04');
pos = get(hfig,'position');
set(hfig,'position',[pos(1:2),4,3]);
%% Everything below appears in userguide
plot(rand(2));
axis([1 2 0 1]);
xlabel('Red text!','color',[1 0 0]);
ht = text(1,0.5,'Green text!');
set(ht,'color',[0 1 0]);
%% The following is excluded from userguide
matlabfrag('graphics/ex04');

Contact us