|
From: | Ben Abbott |
Subject: | Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?) |
Date: | Wed, 8 Oct 2008 09:25:45 -0400 |
On Oct 8, 2008, at 2:13 AM, Søren Hauberg wrote:
tir, 07 10 2008 kl. 22:06 -0400, skrev Ben Abbott:If I manually type each line then all appears to work as expected. I have no idea what is happening here, but thought the example might help someone else track down the problem.One difference between typing the commands manually at the prompt andrunning them in a script, is that drawnow isn't called between each linein the script. Perhaps that is related? Søren
Nice deduction.If I place a "drawnow" after "plot(1:10)" then the script does produce the "invalid handle" error :-)
Does this indicate that "get(hc,...)" command is effectively executed prior to the "delete(hc)"?
Ben
[Prev in Thread] | Current Thread | [Next in Thread] |