From: Judas Magnus on
I was wondering if there was a way to use isNaN in a array loaded by excel.


I already used isNaN function on my array and I get the [1] which indicate it is a NaN.

How would I write a script so that if there is a NaN in the row then extract it to a new array and copy the ones that don't have a NaN in their row to a new array.


I was thinking like using mean for each row, so if there was a 1 in that row than extract that, if the mean is 0 for the row than extract those into a new array.
From: John D'Errico on
"Judas Magnus" <ragnaork5435(a)yahoo.com> wrote in message <hr75lk$pa9$1(a)fred.mathworks.com>...
> I was wondering if there was a way to use isNaN in a array loaded by excel.
>
>
> I already used isNaN function on my array and I get the [1] which indicate it is a NaN.
>
> How would I write a script so that if there is a NaN in the row then extract it to a new array and copy the ones that don't have a NaN in their row to a new array.
>
>
> I was thinking like using mean for each row, so if there was a 1 in that row than extract that, if the mean is 0 for the row than extract those into a new array.

HELP ANY

John
From: us on
"John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <hr763a$nu3$1(a)fred.mathworks.com>...
> "Judas Magnus" <ragnaork5435(a)yahoo.com> wrote in message <hr75lk$pa9$1(a)fred.mathworks.com>...
> > I was wondering if there was a way to use isNaN in a array loaded by excel.
> >
> >
> > I already used isNaN function on my array and I get the [1] which indicate it is a NaN.
> >
> > How would I write a script so that if there is a NaN in the row then extract it to a new array and copy the ones that don't have a NaN in their row to a new array.
> >
> >
> > I was thinking like using mean for each row, so if there was a 1 in that row than extract that, if the mean is 0 for the row than extract those into a new array.
>
> HELP ANY
>
> John

in addition - and - if(f) you own the stats tbx...

help nanmean;

us