Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Removing a location from a vector.
Date: Sun, 24 Mar 2013 20:50:26 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <kinoui$iji$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1364158226 19058 172.30.248.37 (24 Mar 2013 20:50:26 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 24 Mar 2013 20:50:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4177822
Xref: news.mathworks.com comp.soft-sys.matlab:791910

I am making comparisons between three different vectors, testing to see if the data at these given locations is the same.

Here is the program so far:

Tot_Press = find(suture2(:,3)<60|suture2(:,3)>70); %This finds which batches exceed or do not meet the pressure req.
p=length(Tot_Press);
Press_Per=p/26;

Tot_Temp = find(suture2(:,2)<150|suture2(:,2)>170); %This finds which batches exceed or do not meet the temp req.
t=length(Tot_Temp);
Temp_Per=t/26;

Tot_DT = find(suture2(:,4)<2.0|suture2(:,4)>2.5); %This finds which of the batches exceed or do not meet the dwell time req.
d=length(Tot_DT);
DT_Per=d/26;

for i=0:26
    if (Tot_Press(i) == Tot_Temp(i)) | (Tot_Press(i) == Tot_DT(i))
        
    else
        if (Tot_Temp(i) == Tot_DT(i))
            
        end

As you see I have made the comparisons, but I am curious as to if there is a function to delete certain locations from the vectors without having to create another vector and store all data that is not equal into it.

Thanks for the help.