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

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

[Octave-bug-tracker] [bug #60643] disp() for scalar struct not Matlab-co


From: Rik
Subject: [Octave-bug-tracker] [bug #60643] disp() for scalar struct not Matlab-compatible (displays object type)
Date: Fri, 21 May 2021 18:25:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Update of bug #60643 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   6.2.0 => dev                    
                 Summary: struct disp not matlab compatible with object id
header => disp() for scalar struct not Matlab-compatible (displays object
type)

    _______________________________________________________

Follow-up Comment #3:

Confirmed.  Interestingly, Matlab and Octave both agree when the variable is a
struct array.


abc = struct("foo","def","bar",1);
tmp(2) = abc;
disp (tmp)
  1x2 struct array containing the fields:

    foo
    bar



So, for a scalar struct the Octave should just go ahead and display the fields
without the line


scalar structure containing the fields:



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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