Hey guys, I have an Cell Array, with cells only containing nx2 matrices.
>> a = {[1,2;3,4;5,6;7,8],[9,10;11,12],[13,14;15,16;17,18]}>> celldisp(a) a{1} = 1 2 3 4 5 6 7 8a{2} = 9 10 11 12a{3} = 13 14 15 16 17 18
I am tying to find a way to only keep thoose Cells from the Cell Array which size (number of rows) is greater than 50% of the biggest Cell, so that my output looks like this:
>> a = {[1,2;3,4;5,6;7,8],[13,14;15,16;17,18]}a{1} = 1 2 3 4 5 6 7 8a{2} = 13 14 15 16 17 18
Best Answer