Why does HARDCOPY return the handle of my figure instead of the image in MATLAB 6.5 (R13)?
If I try the following commands on my figure, 'sample.fig':
open('sample.fig');fred = hardcopy(1,'-dzbuffer','-r96');
HARDCOPY returns 'fred=1', rather than the image. This subsequently causes ADDFRAME to generate an error message, as the size of 'fred' doesn't match the size of other frames in my AVI object.
However, HARDCOPY returns the complete image with a figure generated by the following command:
surf(peaks)
Best Answer