Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: : [ ] function?
Date: Mon, 21 Jul 2008 20:20:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <g62r22$4hr$1@fred.mathworks.com>
References: <g5sevj$ra1$1@fred.mathworks.com> <muyvdyz6qse.fsf@G99-Boettcher.llan.ll.mit.edu> <g62l0f$soe$1@fred.mathworks.com> <g62mlh$hug$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216671618 4667 172.30.248.38 (21 Jul 2008 20:20:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Jul 2008 20:20:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:480766



"Matt Fig" <spamanon@yahoo.com> wrote in message
<g62mlh$hug$1@fred.mathworks.com>...
> 
> > 
> > my problem is, it doesnt do this- "It creates a variable "a"
> > in the workspace of the callback function"...
> 
> 
> Take off the semicolon.  If you see the variable a printed
> to the command window, then yes it does create it in the
> callback.
> 

What is the reason the callback of handles.id is always
return 0 regardless the number that I put in the edit text box?

%% Edit Text
function subject_ID_CreateFcn(hObject, eventdata, handles)
handles.id= get(hObject, 'Value');
guidata(hObject, handles);


%% push button
function answer_slower_Callback(hObject, eventdata, handles)
handles.b= [(handles.id), (handles.randValue), 2] 
guidata(hObject, handles);