Need help tracking down this bug

So there's a problem with one of my GUIDE created guis, and it's somewhere in the .fig file. I can run the figure fine, and GUIDE will load it fine, and everything appears to be working, but everytime I load the .m file (which then creates the figure) I get the following warning message:
Warning: Could not find appropriate function on path loading function handle >UNKNOWN Function
> In hgload>localLoadFile at 177
In hgload at 59
In openfig at 72
In gui_mainfcn>local_openfig at 286
In gui_mainfcn at 159
In dustFit at 40
dustFit is the name my .m file, and line #40 looks like this:
39 if nargout
40 [varargout{1:nargout}] = gui_mainfcn(gui_State,varargin{:});
41 else
42 gui_mainfcn(gui_State, varargin{:});
43 end
The problem first seemed to start when I moved the folder the .m and .fig file were located in, but I'm not sure that's the actual cause because I also did a lot of work on them before moving folders. Anyone know what the issue might be and how I can fix it?

This question is closed.

Asked:

on 15 Jul 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!