bugGNU Octave - Bugs: bug #48113, findobj does not work with a row...

 
 

bug #48113: findobj does not work with a row vector of handles

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Fri 03 Jun 2016 11:27:42 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 03 Jun 2016 08:37:31 PM UTC, comment #4:

The result for the example in comment #0 is always a 2x1 vector. It does not matter whether the input is a row or a column vector.
I get the same result in Octave now. This bug report can be closed.

Markus Mützel <mmuetzel>
Project Member
Fri 03 Jun 2016 07:51:10 PM UTC, comment #3:

@Markus: I committed your patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/acc95f403d73).

When you run under Matlab, does it preserve the orientation of the input? For the example code you posted in comment #0, is the output h a row or column vector?

Rik <rik5>
Project Administrator
Fri 03 Jun 2016 06:08:54 PM UTC, comment #2:

Patch is already attached (was not commented).

Mike Miller <mtmiller>
Project Administrator
Fri 03 Jun 2016 04:04:50 PM UTC, comment #1:

Confirmed. Not accepting a row vector was clearly just an oversight in the original coding. I'll review and push your patch when available.

Rik <rik5>
Project Administrator
Fri 03 Jun 2016 11:27:42 AM UTC, original submission:

The following code runs in Matlab but fails with an error in Octave:

I will post a patch with a trivial fix as soon as I have a bug number.

Markus Mützel <mmuetzel>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #37375:  findobj_rowvec.patch added by mmuetzel (761B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mmuetzel (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 03 Jun 2016 08:44:40 PM UTCrik5StatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Fri 03 Jun 2016 07:51:10 PM UTCrik5StatusPatch Submitted=>In Progress
    Fri 03 Jun 2016 06:08:54 PM UTCmtmillerStatusConfirmed=>Patch Submitted
    Fri 03 Jun 2016 04:04:50 PM UTCrik5StatusNone=>Confirmed
    Fri 03 Jun 2016 11:29:08 AM UTCmmuetzelAttached File-=>Added findobj_rowvec.patch, #37375

    Back to the top


    Powered by Savane 3.1-cleanup1