MATLAB: Splitting a array at defined interval

array split

I have a array c of 276 elements. I want to split it into 3 separate array. The number of elements in each of these three array is within the array c itself.
vind=c(find(c>=10)) %gives me
vind =
45 45 183
I have to split the array c into three arrays with number of elements as 45, 45 and 183 respectively excluding the position of these three numbers. Pls suggest how it can be done.
with thanks

Best Answer

Alternatively:
loc = find(c >= 10) ;
vind = c(loc) ;
c(loc) = [] ;
out = mat2cell(c, 1, vind) ;
Related Question