From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Output from Callback functions ?
Date: Tue, 25 May 2010 08:48:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <htg2s7$j2f$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1274777288 19535 (25 May 2010 08:48:08 GMT)
NNTP-Posting-Date: Tue, 25 May 2010 08:48:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2364418
Xref: comp.soft-sys.matlab:638994


I'm a fresh MATLAB user and got stuck with a relatively simple problem.As there is no pointer support(as far as I know), I'm having problems with basic argument passing issues.I decided to post a message over here after no progress for one week.

We are trying to get data from serial port and draw it on a plot.I used the callback functions of serial object.Until here there is no problem at all.But when it comes to get an output from callback or to update an array in the main,I couldn't find a way to do it.

The question is:

How can we output from a callback function? How can we update a value outside of the function within a callback scope?

Any help will be highly appreciated.