bugGNU Octave - Bugs: bug #43683, Cell array on interpreter screen

 
 

bug #43683: Cell array on interpreter screen

Submitter:  José Luis García Pallero <jgpallero>
Submitted:  Mon 24 Nov 2014 02:28:23 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Nov 2014 08:45:10 PM UTC, comment #1: 

For a plain cell array, I'm in favor.

But what happens if a cell array contains another cell array, and maybe that contains a few structs? Nicely columnized output isn't possible then.
What does Matlab do?

Philip Nienhuis <philipnienhuis>
Group Member
Mon 24 Nov 2014 02:28:23 PM UTC, original submission:  

Hello:

In the GNU Octave interpreter, if I create a cell array as, for example


a = {'a',1,2;'b',3,4}


I obtain on the screen the result


a =
{
  [1,1] = a
  [2,1] = b
  [1,2] =  1
  [2,2] =  3
  [1,3] =  2
  [2,3] =  4
}


But in Matlab I obtain


a =

    'a'    [1]    [2]
    'b'    [3]    [4]


I think the Matkab's output is better than tha Octave one, as it presents the cell array in a more intiutive form (as a matrix) than Octave.

It would be nice if GNU Octave use tha same behavior as Matlab for the cell array on screen output

José Luis García Pallero <jgpallero>

 

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

Attach Files:
   
   
Comment:
   

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 jgpallero (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code