I'm looking for a range of rows containing a string 'chr1' in sorted cell array rawArrayData.textdata so that I can work with just the data in those rows (e.g. just coordinates on a given chromosome, chr1):
chromCols = find([rawArrayData.textdata{:,1}] == 'chr1');
Error using ==
Matrix dimensions must agree.
I presume the error is improper use of find. Is there a way to do this with cell arrays? Alternately, is there a way to convert instances of 'chrX' to X, convert that to a double and use find?
I used this answer as a starting point, if that helps.
I'm pretty new to this stuff - if there's any other info I can provide I will do so.
Thanks a lot.
rawArrayData.textdata?