Path: news.mathworks.com!not-for-mail
From: "scott" <grenblau@yahoo.deletethis.com>
Newsgroups: comp.soft-sys.matlab
Subject: gui .m file referencing functions in older version instead of own
Date: Sat, 20 Jun 2009 11:09:02 +0000 (UTC)
Organization: Massachusetts Institute of Technology
Lines: 8
Message-ID: <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 1245496142 28884 172.30.248.37 (20 Jun 2009 11:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 20 Jun 2009 11:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1070812
Xref: news.mathworks.com comp.soft-sys.matlab:549124


I made a gui using guide (call it mygui with .m file mygui.m) and then revised it and called it mygui2 (with .m file mygui2.m).  However, when I run mygui2, instead of calling its own functions, it calls functions from mygui (which are called the same thing).  For some reason, it is not giving its own namespace priority.  I don't have much experience putting multiple functions in a single .m file, so I don't know whether this is just what matlab does, but it would seem intuitive to give the functions in one's own .m file priority.

Other than the easy but annoying fix of naming all the functions differently (although I haven't tried this to make sure it would work), is there anything else to be done?
Thanks,
Scott

version: 2007b
os: win