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

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

[Octave-bug-tracker] [bug #33383] Cell array of objects missing cell ele


From: David Bateman
Subject: [Octave-bug-tracker] [bug #33383] Cell array of objects missing cell element labels
Date: Mon, 23 May 2011 23:03:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

URL:
  <http://savannah.gnu.org/bugs/?33383>

                 Summary: Cell array of objects missing cell element labels
                 Project: GNU Octave
            Submitted by: dbateman
            Submitted on: Mon 23 May 2011 11:03:46 PM GMT
                Category: Interpreter
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: David Bateman
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Consider


c = {"string", ones(2)}


which prints


c =
{
  [1,1] = string
  [1,2] =

     1   1
     1   1

}


The labels like "[1,1]" are missing if the array contains an object. Consider


c = {"string", ftp("ftp.gnu.org")}
c = 
{
  [1,1] = string
FTP Object
 host: ftp.gnu.org
 user: anonymous
  dir: /
 mode: binary
}


Unfortunately I see no easy way of treating it, as matlab doesn't print cell
arrays in this manner and the matlab definition of the display
<http://www.mathworks.com/help/techdoc/ref/display.html> function prints the
label whereas octaves cell.cc(Cell:print_raw) method needs and alternative
means of displaying the element contents with the printing of the element
label treated elsewhere.

This is an annoyance rather than a blocking issue, but I thought I should
document the issue in the bug tracker

D.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33383>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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