Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Data analysis
Date: Tue, 21 Jul 2009 09:52:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <h44342$4iu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1248169922 4702 172.30.248.38 (21 Jul 2009 09:52:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 21 Jul 2009 09:52:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1893295
Xref: news.mathworks.com comp.soft-sys.matlab:557051


I have the following data in a vector called DATA1:

0.015
0.01
0.01
0.01
0.01
0.005
0.005
0.005
0.005
0.005
0.005
0.005
0.005
0.005

What I want is to replace all values that are less or equal to 0.005 with zero in the vector. I was thinking to use some kind of if statement.

if DATA_1<=0.005
...........
else
...........
end