I have 2 cell arrays A and B of dimensions 7919×255. These of course have empty and non empty elements in each row. I need to compare each row of A and B (excluding the non empty elements) and find out which row among the 2 cell arrays has the least elements and save it. I have attached sample images of how my arrays look like. The first image is a portion of A and the second a portion of B.
So for example, I need to compare row 1 of A and B and say A has 1 non empty and B has 7 non empty, so number of elements in row 1 for A<B. I need to do this for each row and save it. Any help would be much appreciated, thanks a ton! I have tried the min function but it doesn't accept inpus of cell type arrays.
Best Answer