Hello,

I have a cell array with size 48×13, like can see below

`48×13 cell array Columns 1 through 12 [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] '2460a2f3' [ 0] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] '2460a6dd' [ 1] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] '245f81f7' [ 0] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] '245ecc3e' [ 1] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] '217c7a70' [ 0] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [NaN] [ NaN] [NaN]`

I need to find the position of the first NaN in column 11 and compare if the previous position has a value of 0 in column 12.

To first part I already tried, the code below, to find the first NaN, but without results

`ID_ii = (cellfun(@isnan,Code_Excel(:,11),'UniformOutput', false));X = find(ID_ii,'1'),`

Thanks

## Best Answer