Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Problem with Callback function (Error while evaluating uicontrol Callback)
Posted:
Mar 10, 2013 10:53 PM
|
|
<abo.arqam@gmail.com> wrote in message news:f5481e07-54c7-487d-8558-f1ba60d5e842@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 slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
|
|
|