This provides a very convenient way to embed Matlab figures into LaTeX. The results look great!
22 Jun 2005
fig2tex
Converts MATLAB figure to a TeX file representation.
Author: Ercan Solak
Serban, Radu
Great idea! A few problems though:
1) To avoid "Conversion to cell from char is not possible." errors, the concatenation lines of the type
wrstr = [wrstr,linestr];
should be changed to
wrstr = [wrstr,{linestr}];
2) The functions chokes if the figure does not have a legend. It needs a test
if ~isempty(legh)
3) There are several elements that cannot appear in the figure (eg. rectangle, text) since they do not have an 'XData' property. The loop over the children handles should test the 'type' property and act accordingly.
22 Jun 2005
fig2tex
Converts MATLAB figure to a TeX file representation.
Author: Ercan Solak
Demirkan, Ismail
I tried this, works as promised. Figures look like excellent. You can avoid time consuming task of scaling small fonts in Matlab figures.
Thanks for sharing this.