- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Estimation/Discrete/ModeEstimationPerformance/test/filterEstNum.m

    00001 function  = filterEstNum(data, estNum)
    00002
    00003 %-------------------------------------------------------------------------------------------
    00004 % Removes all the data in data that doesn't have estNum
    00005 %
    00006 % [newMEdata] = filterEstNum(data, estNum)
    00007 %
    00008 %   where   data refers the meData to search through
    00009 %           estNum is the number of estimates to separate out
    00010 %
    00011 %
    00012 % Oliver Martin
    00013 % June 3, 2004
    00014 %-------------------------------------------------------------------------------------------
    00015
    00016 if(nargin ~= 2)
    00017     disp(['There should be two arguments']);
    00018     return
    00019 end
    00020
    00021 index = 1;
    00022
    00023 for i=1:length(data(:,3))
    00024     if data(i,3) == estNum
    00025         newMEdata(index,:) = data(i,:);
    00026         index = index + 1;
    00027     end
    00028 end