bugGNU Octave - Bugs: bug #43136, "-depth" argument in...


bug #43136: "-depth" argument in findobj

Submitted by:  Guillaume <gyom>
Submitted on:  Wed 03 Sep 2014 06:34:04 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 28 Nov 2014 04:04:05 PM UTC, comment #4: 
Rik <rik5>
Project Administrator
Tue 25 Nov 2014 11:48:32 AM UTC, comment #3: 

In R2014a, you get:

>> findobj (h, 'type', 'axes', '-flat')
Error using findobj
Incomplete property-value pair.

and in R2014b, you get:

>> findobj (h, 'type', 'axes', '-flat')
Error using findobj
'-flat' is not a valid option to findobj.

Guillaume <gyom>
Tue 18 Nov 2014 06:01:35 AM UTC, comment #2: 

Ping! Can you test the example in comment #1 and post the results?

Rik <rik5>
Project Administrator
Tue 04 Nov 2014 05:41:12 AM UTC, comment #1: 

I think Octave attempted to follow Matlab's documentation which suggests that the '-depth' argument must appear first.

In any case, does this also apply to -flat in Matlab?

Is this legal?

hax = gca;
findobj (h, 'type', 'axes', '-flat')

Rik <rik5>
Project Administrator
Wed 03 Sep 2014 06:34:04 PM UTC, original submission:  

It seems that in the Octave implementation of findobj, the "-depth" (or "flat") argument has to appear before the list of property param-value pairs, while it can be anywhere in MATLAB.
For example, you can find the following syntax in MATLAB:


Guillaume <gyom>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-28 rik5 StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2014-11-04 rik5 StatusNone => Need Info

    Back to the top

    Powered by Savane 3.5