%% Compare Two Files
% Compare two files using both relative and full paths.
%
% Compare the two files lengthofline.m and lengthofline2.m in the current folder.

visdiff('lengthofline.m','lengthofline2.m')

%
% Compare the two demo files gatlin.mat and gatlin2.mat using a fully qualified file name.

visdiff(fullfile(matlabroot,'toolbox','matlab','demos','gatlin.mat'), ...
fullfile(matlabroot,'toolbox','matlab','demos','gatlin2.mat'))

% Copyright 2012 The MathWorks, Inc.