[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matrix transformation
From: |
Jaroslav Hajek |
Subject: |
Re: matrix transformation |
Date: |
Wed, 27 May 2009 13:01:27 +0200 |
On Wed, May 27, 2009 at 12:52 PM, Bertrand Roessli
<address@hidden> wrote:
> Hello,
>
> I would like to transform a matrix like
> e.g.
>
> 1 2 3 1 2 3 1 2 3
> 4 5 6 4 5 6 4 5 6
> 7 8 9 7 8 9 7 8 9
>
> in
>
> 1 2 3
> 4 5 6
> 7 8 9
> 1 2 3
> 4 5 6
> 7 8 9
> 1 2 3
> 4 5 6
> 7 8 9
>
> Is there a simple way to do that?
>
> Thanks in advance
>
> Bertrand Roessli
>
>
Depends on what you call "simple". For instance, you can use "reshape"
and "permute".
cheers
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz