Quantcast
Viewing latest article 6
Browse Latest Browse All 55

Re: remove row if contains NaN

On 09/27/2016 7:50 PM, Helga Gomes wrote:
> "dpb" wrote in message <jupq9u$30a$1@speranza.aioe.org>...
...

>> Somewhat simpler is
>>
>> A(any(isnan(A),2),:)=[];

 > Could you tell me what the 2 in your script is as others have used it
too.

Sure, altho you could have determined the answer already by looking at
the documentation...

It simply tells the function ANY() to operate on the 2nd dimension
(rows) instead of the default first (columns).

Viewing latest article 6
Browse Latest Browse All 55

Trending Articles