I have 12 files (M) each with 12 columns to which I want to compare each file columns to another file columns.
for s =1:numel(M) if all(strcmpi(M(1),M(s))) == 1 M = M(s); end end
However, I am getting index exceed matrix dimension. Any help as to how to improve this loop would be nice.
Best Answer