I am dealing with matrices of the size 1268*100. I wish to eliminate certain rows from this matrix. I do certain operations to get integer values for the rows that I want to keep and NaN value for the ones I dont. How can I get the rows that have NaN values and use these numbers to eliminate the rows that I dont want in my main matrix.
Eg. if my column matrix has the following values= [1 2 3 NaN 3 4 NaN 5 7 NaN]
So I will need to eliminate rows 4 7 and 10 in my main matrix.
How do I go about doing that.