I'm running parfor loop that returns matrix with different dimensions at each iteration, I need these matrices to be concatenated for the final result
for example
T = [1 2 3 0
7 8 9 10]
I compute for each row the maximal block which should return
for the first row
[1 2
1 3]
and for the second row
[7 8 9
7 9 10]
my code is
parfor i = 1:size(T,1)
findMBL(Data,T(i,:));
end
where findMBL is the function that returns the blocks. my problem is how can i concat the results of the iterations in one matrix
The result should be
[1 2 0
1 3 0
7 8 9
7 9 10]
Note: zero in row 1 and 2 is padding