Path: news.mathworks.com!not-for-mail
From: "scott" <grenblau@yahoo.deletethis.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gui .m file referencing functions in older version instead of own
Date: Mon, 22 Jun 2009 03:57:00 +0000 (UTC)
Organization: Massachusetts Institute of Technology
Lines: 28
Message-ID: <h1mvec$m57$1@fred.mathworks.com>
References: <h1ig0e$s6k$1@fred.mathworks.com>
Reply-To: "scott" <grenblau@yahoo.deletethis.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245643020 22695 172.30.248.37 (22 Jun 2009 03:57:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Jun 2009 03:57:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1070812
Xref: news.mathworks.com comp.soft-sys.matlab:549387


For example, here is an error message from the following situation.

I had a .fig file named fixSpotCalls.fig
I generated fixSpotCalls.m from it.
I edited fixSpotCalls.fig to fixSpotCallsRFOnly.fig and generated a new .m file called fixSpotCallsRFOnly.m

Then I ran fixSpotCallsRFOnly and here is the error messasge when trying to create one of the ui controls.  

---------------
q=fixSpotCallsRFOnly('tmr','001',w);
??? Undefined function or method 'fixSpotCalls' for input arguments of type 'char'.

Error in ==> @(hObject,eventdata)fixSpotCalls('spotContextSlider_CreateFcn',hObject,eventdata,guidata(hObject))


??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
-------------------------
In the properties for this uicontrol, however, I have the following under createfcn:

fixSpotCallsRFOnly('spotContextSlider_CreateFcn',gcbo,[],guidata(gcbo))

which is correct.



Thanks,
Scott