[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57919] Octave's visualization of structures c
From: |
Richard |
Subject: |
[Octave-bug-tracker] [bug #57919] Octave's visualization of structures can be improved |
Date: |
Tue, 17 Mar 2020 17:10:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 |
Follow-up Comment #2, bug #57919 (project octave):
I have to second this, Octave's output for a structure of any depth or
significant size is useless because it is far too verbose.
I once wrote a function that printed a structure more compactly, like this:
>> dispstruct (struct ('a', rand(50), 'b', 1, 'c', 2, 'd', [4,5,6,7], 'e',
'text', 'f', 8, 'g', 9, 'h', 10, 'i', 11, 'j', struct('f1', 1)))
Nonscalars and non character arrays:
Field: a [50 50] double [ 0.744608, 0.186078, 0.316489, 0.54813, ... ]
Field: d [1 4] double [ 4, 5, 6, 7, ... ]
Field: j [1 1] struct
Scalar fields and character arrays:
Field | Contents | Field | Contents | Field | Contents |
Field | Contents
b | 1 | c | 2 | e | text |
f | 8
g | 9 | h | 10 | i | 11 |
|
Happy to share if it's of interest.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57919>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #57919] Octave's visualization of structures can be improved,
Richard <=