Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: call "callback function" again
Date: Thu, 24 Jul 2008 17:26:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <g6adv9$4do$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216920361 4536 172.30.248.37 (24 Jul 2008 17:26:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 17:26:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:481593



function pushbutton9_Callback(hObject, eventdata, handles)

if handles.randValue <=5
   
;

else
    
wavplay(ssamples{handles.randValue}{:}) ;

end


Instead of "doing nothing" when the handles.randValue <=5, 
how do I call the "callback function" again? I want it
persistently call the "callback function" 

if handles.randValue <=5

 set(hObject, 'Callback', '');


this is what I tried, but not right...