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
2009-6-27
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!