Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to remove a row containing NaN
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
vijay mulchandani  
View profile  
 More options Nov 19 2012, 9:55 am
Newsgroups: comp.soft-sys.matlab
From: "vijay mulchandani" <va...@tu-clausthal.de>
Date: Mon, 19 Nov 2012 14:55:20 +0000 (UTC)
Local: Mon, Nov 19 2012 9:55 am
Subject: how to remove a row containing NaN
i have a velocity matrix of 98x124 and i want to remove the complete row where the velocity value is NaN, so that afterwards i can take the mean of the matrix. How can i delete it?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wayne King  
View profile  
 More options Nov 19 2012, 10:43 am
Newsgroups: comp.soft-sys.matlab
From: "Wayne King" <wmkin...@gmail.com>
Date: Mon, 19 Nov 2012 15:43:14 +0000 (UTC)
Local: Mon, Nov 19 2012 10:43 am
Subject: Re: how to remove a row containing NaN

"vijay mulchandani" <va...@tu-clausthal.de> wrote in message <k8dh8o$rk...@newscl01ah.mathworks.com>...
> i have a velocity matrix of 98x124 and i want to remove the complete row where the velocity value is NaN, so that afterwards i can take the mean of the matrix. How can i delete it?

 X = randn(98,124);
 X(4,2) = NaN;
 [I,J] = find(isnan(X));
 X(I,:) = [];

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dpb  
View profile  
 More options Nov 19 2012, 11:39 am
Newsgroups: comp.soft-sys.matlab
From: dpb <n...@non.net>
Date: Mon, 19 Nov 2012 10:38:11 -0600
Local: Mon, Nov 19 2012 11:38 am
Subject: Re: how to remove a row containing NaN
On 11/19/2012 9:43 AM, Wayne King wrote:

> "vijay mulchandani" <va...@tu-clausthal.de> wrote in message
> <k8dh8o$rk...@newscl01ah.mathworks.com>...
>> i have a velocity matrix of 98x124 and i want to remove the complete
>> row where the velocity value is NaN, so that afterwards i can take the
>> mean of the matrix. How can i delete it?

> X = randn(98,124);
> X(4,2) = NaN;
> [I,J] = find(isnan(X));
> X(I,:) = [];

Alternatively,

X(any(isnan(X),2),:)=[];

--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vijay mulchandani  
View profile  
 More options Nov 19 2012, 3:48 pm
Newsgroups: comp.soft-sys.matlab
From: "vijay mulchandani" <va...@tu-clausthal.de>
Date: Mon, 19 Nov 2012 20:48:18 +0000 (UTC)
Local: Mon, Nov 19 2012 3:48 pm
Subject: Re: how to remove a row containing NaN
"Wayne King" wrote in message <k8dk2i$9e...@newscl01ah.mathworks.com>...
> "vijay mulchandani" <va...@tu-clausthal.de> wrote in message <k8dh8o$rk...@newscl01ah.mathworks.com>...
> > i have a velocity matrix of 98x124 and i want to remove the complete row where the velocity value is NaN, so that afterwards i can take the mean of the matrix. How can i delete it?

>  X = randn(98,124);
>  X(4,2) = NaN;
>  [I,J] = find(isnan(X));
>  X(I,:) = [];

thanks a lot

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vijay mulchandani  
View profile  
 More options Nov 19 2012, 3:49 pm
Newsgroups: comp.soft-sys.matlab
From: "vijay mulchandani" <va...@tu-clausthal.de>
Date: Mon, 19 Nov 2012 20:49:24 +0000 (UTC)
Local: Mon, Nov 19 2012 3:49 pm
Subject: Re: how to remove a row containing NaN

thanks a lot

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »