Why am I unable to save my figure in MATLAB 7.0.4 (R14SP2) after I use the View Layout Grid from the Tools menu?

2 次查看(过去 30 天)
I plot a figure, and select the Tools -> View Layout Grid option. When I try to save the figure, I receive the following error message:
One or more output arguments not assigned during call to
'C:\MATLAB704\toolbox\matlab\scribe\@scribe\@scribegrid\methods.m(methods)'.
I cannot save the figure, even after returning to the default figure by deselecting the 'View Layout Grid' option again.

采纳的回答

MathWorks Support Team
This bug has been fixed in MATLAB 7.2 (R2006a). For previous product releases, please read below for possible workarounds:
A bug in MATLAB 7.0.4 (R14SP2) prevents saving a figure after the Layout View Grid option has been applied.
As a workaround, you can issue the following code before saving the figure:
hS=handle2struct(gcf);
h=struct2handle(hS,0);
This will create a new figure, which can be saved by selecting Save from the File menu or by using the HGSAVE(h,'myFig.fig') command. NOTE: this new figure will not contain a Layout Grid.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品


版本

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by