Path: news.mathworks.com!not-for-mail
From: "Dave " <yogi_cave@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: selecting data besed on contents
Date: Sat, 14 Feb 2009 12:56:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <gn6f11$e5i$1@fred.mathworks.com>
Reply-To: "Dave " <yogi_cave@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234616161 14514 172.30.248.37 (14 Feb 2009 12:56:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 Feb 2009 12:56:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1602013
Xref: news.mathworks.com comp.soft-sys.matlab:518246

sorry, i am a complete beginner, but i need to be proficient quickly for my dissertation. i've spent all morning trying to do this and now fully admit i need HELP!

I have an array of about 17000x2. i need to separate the data by the 2nd column which is either 0 or >0. I would like to end up with 2 arrays of the same size as the first one but with data where column 2 had a non-zero value, else 0, and the other where column 2 had a zero value, else 0.

please forgive my simple question, but its not easy when you dont know how!

thx