Mercurial > hg > do-we-sing-like-we-speak
view findInCellArray.m @ 0:26494c0d9ffd
Repo Creation
author | DaveM <d.j.moffat@qmul.ac.uk> |
---|---|
date | Wed, 14 Jan 2015 11:39:40 +0000 |
parents | |
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