[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: h = gca; delete(h); h==gca -> ans=1
From: |
John W. Eaton |
Subject: |
Re: h = gca; delete(h); h==gca -> ans=1 |
Date: |
Wed, 22 Oct 2008 19:42:46 -0400 |
On 22-Oct-2008, Ben Abbott wrote:
| octave:8> h = gcf; delete(h); h==gcf
| ans = 1
That seems correct to me. In the "h == gcf" expression, the gcf
function creates a new "Figure 1". Try
h = gcf; delete (h); get (0, 'currentfigure')
instead to show that H is actually deleted, and that there is no
current figure until you create a new one.
| I also noticed in Matlab
|
| >> gco
| ans = []
|
| but in Octave
|
| octave:9> gco
| error: `gco' undefined near line 9 column 1
|
| I have no c++ skill, but I'll go out on a limb and ask if gca() &
| gcf() might be cast as special instances of gco()?
I don't know whether that makes sense.
jwe