Why does HARDCOPY return the handle of my figure instead of the image in MATLAB 6.5 (R13)?

2 views (last 30 days)
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)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This issue has been forwarded to our developemnt staff for further investigation.
There are currently no known workarounds.

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!