I have a 69x1cell array. Each row contains 3 columns of double but with variable numbers of rows.
In each row there are, for example;
4x3 double 13x3 double ... etc.
I extract all the data from the cell array into one matrix using;
result = vertcat(data{:})
What I would like to do is to give them an identify based on which cell they are extracted from in the data cell array. For example, the 4 rows extracted from the 1st row in the data cell array would have 1 in front of them...so i would get something like;
1,x,y,z
1,x,y,z
1,x,y,z
1,x,y,z (as row 1 in data has 4 rows)
2,x,y,z
2,x,y,z (for the 13 rows)