Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: go to next function in one callback?
Date: Thu, 17 Jul 2008 10:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <g5n6am$78p$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 1216289942 7449 172.30.248.37 (17 Jul 2008 10:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 17 Jul 2008 10:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:479938



In Gui, how do I command the callback function to go to the
next function?

For example, when I first press the button, it will go to this, 


function answer_faster_Callback(hObject, eventdata, handles)
csvwrite('subject1.dat',[1;00;55]);


then when I press again, it will go to this, 

csvwrite('subject2.dat',[3;5;6]);


Possible to do that?

Thanks.