help-octave
[Top][All Lists]
Advanced

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

displaying structure arrays


From: John W. Eaton
Subject: displaying structure arrays
Date: Thu, 29 Jan 2009 10:51:38 -0500

On 29-Jan-2009, Francesco Potortì wrote:

| It seems to me that displaying structure arrays has changed in 3.1.
| Now, I get this:
| 
| octave> x = 1:10;
| octave> N = length(x);
| 
| octave> y = repmat(struct('field1',[],'field2',[]),1,N)
| y =
| {
|   1x10 struct array containing the fields:
| 
|     field1
|     field2
| }
| 
| I think that this behaviour is due to this change:
| 
| 2008-03-07  John W. Eaton  <address@hidden>
| 
|       * ov-struct.cc (octave_struct::print_raw): Don't print contents fo
|       struct arrays that have more than one element.
| 
| 
| How can I see the fields' contents all at once?

If you think the behavior in the development version is bad, then I
think we should discuss what it should do on the maintainers list.

jwe



reply via email to

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