displaying structure arrays

John W. Eaton jwe at octave.org
Thu Jan 29 09:51:38 CST 2009


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  <jwe at octave.org>
| 
| 	* 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



More information about the Help-octave mailing list