Removing all non NaN Values to a new matrix.
73 views (last 30 days)
I have got a 261x3733 double array temp with numbers and NaN.
I would like to get in matrix a only the nonnan values. Conditions: a should be of the same size as temp and all nonnan values shouldn't change place.
I tried this code:
However I get the vector with size 330227x1
Do you have any suggestions for solving this issue?