I am trying to matlab to output the row and column number for the location of a string, in this case 'Activity desc.'
Code:
table = {'test', 'ts', 'tst'; 'dvd', 'cd', 'tv'; 'type', 'Activity desc.', 'date'};fnd = strfind(table,'Activity desc.');test1 = find([fnd{:}] == 1);test2 = find(cell2mat(cellfun(@(x) (isequal(x,1)), fnd, 'UniformOutput', false)));test1 = 1test2 = 6
This is the closest i've come from what I have found so far.
Best Answer