octave-maintainers
[Top][All Lists]
Advanced

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

sort fieldnames of a struct when transposed?


From: John W. Eaton
Subject: sort fieldnames of a struct when transposed?
Date: Tue, 23 Jun 2009 10:02:03 -0400

On 23-Jun-2009, Thorsten Meyer wrote:

| is it intentional (maybe a compatibility feature?), that the fieldnames of a
| struct (array) are sorted, when it is transposed with ' or .'?
| 
| e.g.:
|       x=struct(cellstr(char(floor(rand(1000,10)*24+65))){:})
|       x=x'

I checked in the following change.  Sorry about it being in two
pieces.  I should be more careful...

  http://hg.savannah.gnu.org/hgweb/octave/rev/d77fa87c47d8
  http://hg.savannah.gnu.org/hgweb/octave/rev/182b7088af1c

Jaroslav, this should probably go in the 3.2.x branch.

Thanks,

jwe


reply via email to

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