From: "Dave " <>
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$>
Reply-To: "Dave " <>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1234616161 14514 (14 Feb 2009 12:56:01 GMT)
NNTP-Posting-Date: Sat, 14 Feb 2009 12:56:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1602013
Xref: 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!