From: brihikaru on 13 May 2010 15:57 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <eb719410-6779-4eb2-93de-20f8ff80d16c(a)a21g2000yqn.googlegroups.com>... > I would say it's because 'efmenu' is not defined. Why do you think > this variable or function should exist? Or if it exists somewhere, > why do you think it should be seen inside your callback? If it's a > variable, it needs to be sent in somehow, for example, declare it > global or use setappdata()/getappdata(). If it's a function, it needs > to be defined somewhere in your .m file or exist as a file on your > path somewhere. i don't think efmenu is exist anywhere in my coding or gui coding either. i couldn't find it anywhere.. i think there must be a problem when i put the coding in a different file.m for plotting.. do we need to do a separate file or can we just put the formula etc in the gui coding??
From: ImageAnalyst on 13 May 2010 16:11 On May 13, 3:57 pm, "brihikaru " <retr0ca...(a)hotmail.com> wrote: > i don't think efmenu is exist anywhere in my coding or gui coding either. i couldn't find it anywhere.. > i think there must be a problem when i put the coding in a different file..m for plotting.. > do we need to do a separate file or can we just put the formula etc in the gui coding?? ----------------------------------------------------------------------------------------------------------------------------------- You can have the code in the same file, or different file(s), just so long as you do it right to make sure the variables and functions you need are in scope at the time that you need them. But it looks like your first task is to hunt down efmenu. I know I don't have it. Maybe your colleague has it.
From: Timothy on 1 Jun 2010 18:34 "brihikaru " <retr0candy(a)hotmail.com> wrote in message <hshlif$7pu$1(a)fred.mathworks.com>... > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <eb719410-6779-4eb2-93de-20f8ff80d16c(a)a21g2000yqn.googlegroups.com>... > > I would say it's because 'efmenu' is not defined. Why do you think > > this variable or function should exist? Or if it exists somewhere, > > why do you think it should be seen inside your callback? If it's a > > variable, it needs to be sent in somehow, for example, declare it > > global or use setappdata()/getappdata(). If it's a function, it needs > > to be defined somewhere in your .m file or exist as a file on your > > path somewhere. > > i don't think efmenu is exist anywhere in my coding or gui coding either. i couldn't find it anywhere.. > i think there must be a problem when i put the coding in a different file.m for plotting.. > do we need to do a separate file or can we just put the formula etc in the gui coding?? I have this problem as well. The code is trying to link to the free EzyFit toolbox (http://www.mathworks.com/matlabcentral/fileexchange/10176). I wrote a UI on a computer that had it installed, and it embedded some links to EzyFit in the code that cannot be removed by just deleting them from the menu. They don't appear anywhere in my .m file explicitly. I now receive the same error when using the program on another system that doesn't have it. If anyone can figure out how to find/remove whatever the toolbox added while authoring so other systems don't receive the bug, it would be appreciated.
From: Timothy on 1 Jun 2010 18:38
Even better. Solution in this thread: http://newsgroups.derkeiler.com/Archive/Comp/comp.soft-sys.matlab/2009-07/msg07729.html |