From: brihikaru on 13 May 2010 06:53 i have the program that implement user interface..it runs succesfuly..but i dont know how to implement gui for that..i tried last night but it seems to have errors.. can anyone help me??
From: Yuri Feldman on 13 May 2010 03:22 you could create a gui (for example, use guide command), and call your functions from the callbacks. Just make sure they are on the MATLAB path (addpath) Did I understand your question correctly? Please be more specific
From: brihikaru on 13 May 2010 07:58 Yuri Feldman <yuri.feldman(a)gmail.com> wrote in message <404138306.128992.1273749750981.JavaMail.root(a)gallium.mathforum.org>... > you could create a gui (for example, use guide command), and call your functions from the callbacks. Just make sure they are on the MATLAB path (addpath) > > Did I understand your question correctly? Please be more specific I already call the functions from callbacks.. the gui seems didn't connect with the plotting..when i tried to run..there are errors as below : ??? Error using ==> struct2handle Undefined function or variable 'efmenu'. ??? Error using ==> struct2handle Error while evaluating figure CreateFcn do u have any idea why this error occurred?
From: brihikaru on 13 May 2010 07:55 Yuri Feldman <yuri.feldman(a)gmail.com> wrote in message <404138306.128992.1273749750981.JavaMail.root(a)gallium.mathforum.org>... > you could create a gui (for example, use guide command), and call your functions from the callbacks. Just make sure they are on the MATLAB path (addpath) > > Did I understand your question correctly? Please be more specific i already call the functions from the callbacks..but still there's so many errors.. i don't know how to do this anymore. the errors is like this " ??? Error using ==> struct2handle Undefined function or variable 'efmenu'. ??? Error using ==> struct2handle Error while evaluating figure CreateFcn i try to fix the errors but still i couldnt fine anywhere
From: ImageAnalyst on 13 May 2010 10:32
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. |