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

 
 

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

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sun 23 May 2010 03:47:37 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project MemberIn charge of this item.
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>
Project 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
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
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 May 2010 12:12:37 AM UTCrik5Open/ClosedOpen=>Closed
    Wed 26 May 2010 11:54:15 PM UTCbpabbottStatusReady For Test=>Fixed
    Tue 25 May 2010 02:04:22 PM UTCbpabbottAttached File-=>Added changeset.patch, #20616
    Mon 24 May 2010 01:22:50 PM UTCbpabbottStatusPatch Submitted=>Ready For Test
    Sun 23 May 2010 05:50:21 PM UTCbpabbottAttached File-=>Added changeset.patch, #20601
    Sun 23 May 2010 04:23:36 PM UTCbpabbottAttached File-=>Added changeset.patch, #20600
      StatusNone=>Patch Submitted
      Assigned toNone=>bpabbott

    Back to the top


    Powered by Savane 3.1-cleanup1