From: Asman on
Hi,

I have an array of dimension: 240 x 320
Instead of having the above 2D array, I want the same data to be in a
3D array of dimension: 64 x 16 x3

cheers

Azi
From: Matt J on
"Asman " <azi88(a)hotmail.co.uk> wrote in message <hj79te$pja$1(a)fred.mathworks.com>...
> Hi,
>
> I have an array of dimension: 240 x 320
> Instead of having the above 2D array, I want the same data to be in a
> 3D array of dimension: 64 x 16 x3

I'll assume you really mean 64x16x75

>> x=rand(240,320);
>> reshape(x,64,16,[]);
From: kinor on
"Asman " <azi88(a)hotmail.co.uk> wrote in message <hj79te$pja$1(a)fred.mathworks.com>...
> Hi,
>
> I have an array of dimension: 240 x 320
> Instead of having the above 2D array, I want the same data to be in a
> 3D array of dimension: 64 x 16 x3
>
> cheers
>
> Azi

hi Azi

help reshape

cheers
kinor
 | 
Pages: 1
Prev: reshape matrix
Next: Memory leak using spmd