Re: combining small arrays into large one [message #47926] |
Mon, 13 March 2006 13:46 |
Marshall Perrin
Messages: 44 Registered: December 2005
|
Member |
|
|
pimpk24@hotmail.com <pimpk24@hotmail.com> wrote:
> Hello,
>
> I have four one-dimensional arrays or vectors of the same size and want
> to create one large array containing these four smaller ones (where the
> second dimension is an index of each smaller array)
>
> say each small array has 50 different elements,
> a1= (50)
> a2 = (50)
> a3= (50)
> a4= (50)
>
> and I want:
>
> a=(50, 4)
a = [ [a1], [a2], [a3], [a4] ]
- Marshall
|
|
|
Re: combining small arrays into large one [message #47927 is a reply to message #47926] |
Mon, 13 March 2006 13:22  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
Hi,
a=[[a1],[a2],[a3],[a4]]
regards,
lajos
On Mon, 13 Mar 2006 pimpk24@hotmail.com wrote:
> Hello,
>
> I have four one-dimensional arrays or vectors of the same size and want
> to create one large array containing these four smaller ones (where the
> second dimension is an index of each smaller array)
>
> say each small array has 50 different elements,
> a1= (50)
> a2 = (50)
> a3= (50)
> a4= (50)
>
> and I want:
>
> a=(50, 4)
>
>
> any help greatly appreciated ...
>
>
|
|
|