FILTERING NaN
Hi All
Help required as below. Thanks and Happy New Year.

Hi All
Help required as below. Thanks and Happy New Year.

> They will not occur in beween valid numbers.
Where the Nan's are in a column does not matter at all. The buitl-in function "filterNaN" throws an error on two situations:
1) no NaN in the matrix (thats silly as it just should return the original matrix unchanged) this is fixed by my first attempt above
2) NaN is in every row of the matrix. Here we would expect an empty matrix but thats something not provided by Prime. My last two attempts try to fix this by returning NaN instead of a matrix.
in your case you could write a program with a loop that counts and stops when the first value in a column is not a scalar. But as along as the column contains at least one scalar, my short first rewrite of "filterNan" should do the job.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.