To compare two files from the Current Folder browser:
For two files in the same folder, select the files, right-click and select Compare Selected Files/Folders.
To compare files in different folders:
Select a file, right-click and select Compare Against
Select the second file to compare in the Select Files or Folders for Comparison dialog box.
Leave the default Comparison type,
If the selected files are XML files, the XML comparison tool performs a Chawathe analysis on the files and displays a report in the Comparison Tool.
The file you right-click to launch the XML comparison tool displays on the right side of the report.
For more information about comparisons of other file types with the Comparison Tool, such as text, MAT or binary, see Comparing Files and Folders in the MATLAB® documentation.
To compare files using the Comparison Tool, from the MATLAB Toolstrip, in the File section, select the Compare button. In the dialog box select files to compare.
If the files you select to compare are XML files and you select
XML comparison, the XML comparison tool
performs a Chawathe analysis of the XML files, and generates an report.
To compare XML files from the command line, enter
XML files. This XML comparison functionality is an extension to the MATLAB
If you specify two XML files to compare using either the Current
Folder Browser or the
visdiff function, then the
Comparison Tool automatically performs the default comparison type,
To change comparison type, either create a new comparison from
the Comparison Tool, or use the Compare Against option
from the Current Folder browser. You can change comparison type in
the Select Files or Folders for Comparison dialog box. If you want
the MATLAB text differences report for XML files, change the
comparison type to
Text comparison in the
dialog before clicking Compare.
For an example with instructions, see