there seems to be a problem with distFig, which I've used all the time. http://www.mathworks.com/matlabcentral/fileexchange/37176-distribute-figures
The figures created with 'fig' just vanish from the screen instead of being distributed. Hm...
your function works as advertised yet I don't understand why setting a width and height in centimeters/inch is of any value if no resolution is given at the same time (dpi or 'dots per centimeter'), I really don't get it. As it is one basically only sets an aspect ratio or not?
If anything I want to be able to size and export my figures using exact dimensions (cm/inch) At a given resolution!
I never understood why matlab doesn't offer an export resolution for their figures. I am now using your 'fig' function to create the proper aspect ration and use 'export_fig' (-r300) from the fileexchange here to export at a given resolution.
Ideally this would be fused togeter with export_fig
Obviously one wants to export most figures as a vector graphic where resolution plays no role, but that can't be done with all figures :)
Hi, very good application. One question that I have is the following. Is it possible to create a figure of lets say 640x480 pixels, with a small border (i.e "border", "on") and then save it as a PNG with resolution 300 dpi ??