annotate 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
rev   line source
d@0 1 function [indices] = findInCellArray(cellArray, column, string)
d@0 2
d@0 3 trackList = [cellArray{:,column}];
d@0 4 indexArray = strfind(trackList,string);
d@0 5 indices = [];
d@0 6 for i = 1:size(indexArray,2)
d@0 7 if (indexArray{i} == 1)
d@0 8 indices = cat(2,indices,i);
d@0 9 end
d@0 10 end
d@0 11 end