octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #67048] findobj with 'tag'=[]


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #67048] findobj with 'tag'=[]
Date: Wed, 23 Apr 2025 10:04:55 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?67048>

                 Summary: findobj with 'tag'=[]
                   Group: GNU Octave
               Submitter: lt1234
               Submitted: Wed 23 Apr 2025 02:04:51 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 9.3.0
                 Release:
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 23 Apr 2025 02:04:51 PM GMT By: Liang Tang <lt1234>
findobj uses isequal on line 263.  This causes a matlab compatibility issue.
Thanks.

% basic 
isequal('', [])  % empty content - used in findobj 
(''==[])         % char ~= numeric


% figure w/o tag
figure(3)

% For Octave, both give the same results [0 3]

ind=findobj(0, 'tag', '')   % should return [0 3]
ind=findobj(0, 'tag', [])   % should return ind=[]  same as matlab 

% if tag is a char, then a findobj with tag=[] should not return the object
with tag=''

ischar(get(3, 'tag'))







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67048>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]