bugGNU Octave - Bugs: bug #29947, ancestor (h_vector,...

 
 

bug #29947: ancestor (h_vector, "axes") returns an empty matrix

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sun 23 May 2010 03:47:37 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 25 May 2010 02:04:22 PM UTC, comment #4: 

John, thanks for pointing that out. I had discovered a compatibility problem  and forgot to update the uploaded changeset.

For a vector of input handles a cell array should be returned. I don't understand why it was implemented this way.

My 3rd attempt should be uploaded to the tracker.

(file #20616)

Ben Abbott <bpabbott>
Group Member
Tue 25 May 2010 01:28:11 PM UTC, comment #3: 

Does the change in the initialization of P from

  p = [];

to

  p = zeross (numel (h), 1);

affect compatibility?

Otherwise, it looks OK to me.

John W. Eaton <jwe>
Group administrator
Mon 24 May 2010 01:22:50 PM UTC, comment #2: 

I noticed that Savannah includes a list of patch submissions. I had misunderstood what "Patch Submitted" meant so I'm changing the status.

Ben Abbott <bpabbott>
Group Member
Sun 23 May 2010 04:23:36 PM UTC, comment #1: 

Is this the best way to do this? (see the attached changeset).

(file #20600)

Ben Abbott <bpabbott>
Group Member
Sun 23 May 2010 03:47:37 PM UTC, original submission:  

In matlab, the follow returns

>> figure(1)
>> clf
>> x = 0:0.1:10;
>> h = plot (x, sin(x), x, cos(x));
>> ax = ancestor (h, 'axes')


    [170]
    [170]

>> whos ax

  Name      Size            Bytes  Class    Attributes

  ax        2x1               136  cell   

Octave returns

octave:36> ax = ancestor (h, 'axes')
ax = [](0x0)

Ben Abbott <bpabbott>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #20616:  changeset.patch added by bpabbott (2KiB - application/octet-stream - version 3)
file #20601:  changeset.patch added by bpabbott (2KiB - application/octet-stream - I encountered some errors using he 1st version ... so v2.)
file #20600:  changeset.patch added by bpabbott (2KiB - application/octet-stream - Works, but looks a but kludgy to me)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-28 rik5 Open/ClosedOpen Closed
    2010-05-26 bpabbott StatusReady For Test Fixed
    2010-05-25 bpabbott Attached File- Added changeset.patch, #20616
    2010-05-24 bpabbott StatusPatch Submitted Ready For Test
    2010-05-23 bpabbott Attached File- Added changeset.patch, #20601
    2010-05-23 bpabbott Attached File- Added changeset.patch, #20600
        StatusNone Patch Submitted
        Assigned toNone bpabbott

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code