Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1274777288 19535 172.30.248.35 (25 May 2010 08:48:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 25 May 2010 08:48:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2364418
Xref: news.mathworks.com comp.soft-sys.matlab:638994

Hi,

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.