[Top][All Lists]

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

displaying structure arrays

From: Francesco Potortì
Subject: displaying structure arrays
Date: Thu, 29 Jan 2009 10:21:47 +0100

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:


I think that this behaviour is due to this change:

2008-03-07  John W. Eaton  <address@hidden>

        * (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?

Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:

reply via email to

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