Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Plot to a figure from a function
Date: Sat, 29 Sep 2007 20:28:13 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <fdmcgt$1cj$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191097693 1427 172.30.248.38 (29 Sep 2007 20:28:13 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Sep 2007 20:28:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:430700



in my script i do

h = figure;

then i have a loop which calls a function 'MyFunction' with

MyFunction(h(1), more_params)

the function definition for MyFunction is

function MyFunction(h, more_params)

inside MyFunction, i do

plot(h, ones(10))

and nothing(!) happens until after the program finishes
running, at which point i get a blank axis displayed

does it not work like this?

Thanks,

David