Hey all,
I have x.mat which includes 71 tables. for all tables, I want to count the number of NaN cells in 9, 10, 11, and 12 columns (separately). Also, I want to know the maximum sequence NaN in each column.
at the end I would like something like this for each column:
… … …
here what I was done so far, but I am not sure about the accuracy:
tmax_i = 0;tmin_i = 0;rrr24_i = 0;tm_m = 0;for y = 1:height(x) if(x.tmax_m(y) = nan) tmax_i = tmax_i + 1; end if(x.tmin_m(y) = nan) tmin_i = tmin_i + 1; end if(x.rrr24(y) = nan) rrr24_i = rrr24_i + 1; end if(x.tm_m(y) = nan) tm_m = tm_m + 1; endend
I don't sure about this. I don't know how to do this for every table in the x.mat and make a final output like what I said above.
Thank you in advance
Best Answer