| MATLAB Central > MATLAB Newsreader > gui .m file referencing functions in older vers... |
|
|
|
Subject: gui .m file referencing functions in older version instead of own From: scott Date: 20 Jun, 2009 11:09:02 Message: 1 of 7 |
|
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. |
|
Subject: gui .m file referencing functions in older version instead of own From: Bruno Luong Date: 20 Jun, 2009 11:33:01 Message: 2 of 7 |
|
"scott" <grenblau@yahoo.deletethis.com> wrote in message <h1ig0e$s6k$1@fred.mathworks.com>... |
|
Subject: gui .m file referencing functions in older version instead of own From: Nathan Date: 20 Jun, 2009 17:54:15 Message: 3 of 7 |
|
On Jun 20, 4:09 am, "scott" <grenb...@yahoo.deletethis.com> wrote: |
|
Subject: gui .m file referencing functions in older version instead of own From: scott Date: 22 Jun, 2009 03:50:01 Message: 4 of 7 |
|
Nathan <ngreco32@gmail.com> wrote in message <0ad1b602-3b0b-4d4a-b819-d30be043ae1b@y10g2000prc.googlegroups.com>... |
|
Subject: gui .m file referencing functions in older version instead of own From: scott Date: 22 Jun, 2009 03:57:00 Message: 5 of 7 |
|
For example, here is an error message from the following situation. |
|
Subject: gui .m file referencing functions in older version instead of own From: scott Date: 22 Jun, 2009 03:59:03 Message: 6 of 7 |
|
One more thing I forgot to mention. The reason it gave me an error in createfcn is because I renamed the old fixSpotCalls.fig and fixSpotCalls.m files to something else so that they could no longer be found. This exposed the embedded dependence upon those files in my new fixSpotCallsRFOnly.m/fig files |
|
Subject: gui .m file referencing functions in older version instead of own From: Bruno Luong Date: 22 Jun, 2009 06:19:01 Message: 7 of 7 |
|
"scott" <grenblau@yahoo.deletethis.com> wrote in message <h1mvi7$bk$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| gui | scott | 20 Jun, 2009 07:14:02 |
| guide | scott | 20 Jun, 2009 07:14:02 |
| functions | scott | 20 Jun, 2009 07:14:02 |
| namespace | scott | 20 Jun, 2009 07:14:02 |
Contact us at files@mathworks.com
