open figure stored in workspace
108 ビュー (過去 30 日間)
I am trying to open a figure that I have previously stored in the MATLAB Workspace. The figure has been stored in this way:
f1 = figure; figure(f1); plot(gr_RULE(10:end,1)); title('Rule for k');
However, when I try to open it the following error comes up:
Error using openFigure
The value of 'Filename' is invalid. It must satisfy the function: ischar.
Error in openfig>localGetFileAndOptions (line 104)
Error in openfig (line 37)
[filename, reuse, visibleAction] = localGetFileAndOptions(varargin);
I would appreciate if sb could let me know how to open them directly from the workspace and not from the directory file.