I have a class with a method that calls a GUI. The GUI MATLAB and FIG-files are located within the private directory of the class. When the method calls the GUI file, I get the following error:
??? Error using ==> load Unable to read file objgui.fig: file does not exist. Error in ==> D:\\Applications\\MATLAB6p5\\toolbox\\matlab\\iofun\\hgload.m On line 45 ==> fileVars = load(filename,'-mat'); Error in ==> D:\\Applications\\MATLAB6p5\\toolbox\\matlab\\graphics\\openfig.m On line 89 ==> [figs, oldvis] = hgload(filename, struct('Visible','off')); Error in ==> D:\\Applications\\matlabwork\\@testclass\\private\\objgui.m On line 10 ==> fig = openfig(mfilename,'reuse'); Error in ==> D:\\Applications\\matlabwork\\@testclass\\callobjgui.m On line 3 ==> h=objgui;
Best Answer