From: us on
"Mano Samuel"
> For example, let us assume,
> data(1,:,1) = [1 2 3 4 5 6 7 8 9 0];
> data(1,:,2) = [1 2 3 4 5 6 ];
> data(1,:,3) = [1 2 3 4 5 6 7 8];
> data(1,:,4) = [1 2 3 4 5 6 7];
>
> So i'd like the answer to be,
>
> ans = [1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7];

well... firstly, don't ...assume... try it - then you'll find that your
DATA(...)=[...]
does not work to begin with...

later on, you may want to look at

help reshape;

on how to ...reshape... an array...

us