view findInCellArray.m @ 3:475bddaf580c tip

Add report and Presentation
author Dave Moffat <d.j.moffat@qmul.ac.uk>
date Wed, 25 Feb 2015 16:07:05 +0000
parents 26494c0d9ffd
children
line wrap: on
line source
function [indices] = findInCellArray(cellArray, column, string)

trackList = [cellArray{:,column}];
indexArray = strfind(trackList,string);
indices = [];
for i = 1:size(indexArray,2)
    if (indexArray{i} == 1)
    indices = cat(2,indices,i);
    end
end
end