Thanks a lot for that beatiful code. Works quite good.
However, there is a bug: one cannot use the symbol "%" within the file name:
When I type: export_fig(f3, 'Post-Process Estimates - diff. weight (+5 +10 +15)kg, Amp 10','-pdf','-q0','-a1','-r160','-nocrop') % lowest quality, no anti-aliasing, reduced resolution
it creates a nice pdf.
However when I add the symbol "%" at the end of the name, that is: Amp 10% I get a strange error message:
>> export_fig(f3, 'Post-Process Estimates - diff. weight (+5 +10 +15)kg, Amp 10%','-pdf','-q0','-a1','-r160','-nocrop')
Error using eps2pdf (line 107)
**** Unable to open the initial device, quitting.
Error in export_fig (line 435)
eps2pdf(tmp_nam, pdf_nam, 1, options.append, options.colourspace==2, options.quality);
14 Jul 2014
Exports figures nicely to a number of vector & bitmap formats.