Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: default value when no callback
Date: Tue, 22 Jul 2008 07:11:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g64169$dj3$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216710665 13923 172.30.248.35 (22 Jul 2008 07:11:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Jul 2008 07:11:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:480846



How to put a default value of the callback if it's not being
called? so that there is always a value even it's not being
used. Like this?


function  answer_nochange_Callback(hObject, eventdata, handles)

handles.n= [1, 2, 0] 


if handles.n <= 0
   handles.n= 99;
   
end