Why do I receive an error when I export a figure using the plot tools menu in MATLAB 7.0 (R14)?

11 views (last 30 days)
I am trying to export a figure to a file. When I click on Export Setup in the Property Editor and try to save the file, I receive the following error:
error using ==> hgexport
error using ==> print
function 'real' is not defined for values of class 'figure'
The occurrence of the error depends on the very first call to Export Setup after I start MATLAB is made. If the first call is from the figure's File menu, then the error does not occur. If the first call is from the Property Editor, then the error occurs whenever Export Setup is selected.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0 (R14) in the way that it handles export setup from the Property Editor.
To work around this issue, use the Export Setup option from the File menu instead of the Property Editor.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks 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!