selects the rows and columns for removing any missing values.
[rix,cix] = nan_row_col_deletion(d) [rix,cix] = nan_row_col_deletion(d,c,w)
d(rix,cix) does not contain any NaN's i.e. missing values
A heuristic based on maximizing the number of remaining sample values is used. In other words, if there are more rows than columns, it is more likely that a row-wise deletion will be applied and vice versa.