I'm trying to write a script that looks through two excel documents and finds strings that are in the first document but aren't in the second. I have been successful in doing this, however I can't figure out how to display the strings in a new array. This is what I have so far:
if true % code
end[num1,excel1,raw1] = xlsread('excel1'); [num2,excel2,raw2] = xlsread('excel2'); endnames1 = excel1(:,1); names2 = excel1(:,1);for k = 1:length(names); match = strmatch(names1(k),names2); if rem(match,1) == 0 else x = names1(k) endend
Best Answer