I would like to know how could I compare two files (line by line) (*.xml, .m,.txt,...etc) using MATLAB.
file1 = \'toto.xml\'; file2 = \'titi.xml\';
first change the text file to string, then use strcmp function of matlab.
text1 = fileread('test.txt'); text2 = fileread('testcp.txt'); strcmp(text1, text2)