Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with Callback function (Error while evaluating uicontrol Callback)

4,162 views
Skip to first unread message

wapo

unread,
Aug 20, 2008, 4:46:58 AM8/20/08
to
Hi all,

I have a GUI that works perfect in my system but when some colleagues
try to use it in their PCs we get:

??? Undefined function or method 'image_hashing_GUI' for input
arguments of type 'struct'.

??? Error using ==> image_hashing_GUI('availableMethods_Callback',gcbo,
[],guidata(gcbo))
Undefined function or method 'image_hashing_GUI' for input arguments
of type 'struct'.

??? Error while evaluating uicontrol Callback

Basically there is drop down menu. The moment an element is selected
in the menu we get that message.

The version of MATLAB is 7.4.0.287

Any clues

Thanks in advance

rodney....@gmail.com

unread,
Aug 20, 2008, 5:19:56 AM8/20/08
to

Make sure 'image_hashing_GUI.m' is either in the same directory as
the main GUI form or on the users path.
(type 'path' at the command line to see their path)

Rod

--
http://iheartmatlab.blogspot.com

wapo

unread,
Aug 20, 2008, 8:24:47 AM8/20/08
to
Thanks alot, that was the problem. Some stupid path problem.

abo....@gmail.com

unread,
Mar 8, 2013, 5:43:57 PM3/8/13
to
Dear Rod,

I am new to matlab and i need to learn how to use the gui ,the first thing i tried to do is to make a sum and diff program with gui and whenever i need to run it i get the follwoing error, i even tried other ready guis and still get the same broblem :
??? Reference to non-existent field 'result'.

Error in ==> Gui>sum_button_Callback at 164
set(handles.result,'string',num2srt(y));

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> Gui at 42
gui_mainfcn(gui_State, varargin{:});

Error in ==> @(hObject,eventdata)Gui('sum_button_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback


if it's a path problem what exactly should i do??

Steven_Lord

unread,
Mar 10, 2013, 10:53:58 PM3/10/13
to


<abo....@gmail.com> wrote in message
news:f5481e07-54c7-487d...@googlegroups.com...
> On Wednesday, August 20, 2008 12:19:56 PM UTC+3, rodney....@gmail.com
> wrote:
>> On Aug 20, 4:46 pm, wapo <apostolos.georga...@gmail.com> wrote:

*snip*

> I am new to matlab and i need to learn how to use the gui ,the first thing
> i tried to do is to make a sum and diff program with gui and whenever i
> need to run it i get the follwoing error, i even tried other ready guis
> and still get the same broblem :
> ??? Reference to non-existent field 'result'.
>
> Error in ==> Gui>sum_button_Callback at 164
> set(handles.result,'string',num2srt(y));

How did you launch the GUI? Did you run the function file associated with
the GUI or did you launch it by double-clicking on the figure file? For
GUIDE GUIs you MUST run the function file; it performs some setup that is
necessary for proper execution of the GUI, and double-clicking that figure
file doesn't perform that setup.

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

aya laban

unread,
Dec 23, 2016, 7:01:09 PM12/23/16
to
0 new messages