MATLAB: How to pass a non-integer figure handle to PRINT but also specify a filename in MATLAB 7.8 (R2009a)

dps2integerhandleMATLABprint

I have a non-integer figure handle that I would like to pass to the PRINT command. I want to be able to specify a filename.

Best Answer

This change has been incorporated into the documentation in Release 2010a (R2010a). For previous releases, read below for any additional information:
The following is an example of the syntax to be used with PRINT to print a non-integer figure handle.
h = figure('IntegerHandle','off');
surf(peaks);
print(h,'-dps2','FigureName.ps');