%% Display the McCabe Complexity of File
% Run checkcode on the example file lengthofline.m using the '-cyc' option. MATLAB® displays the McCabe complexity of the file, followed by the Code Analyzer messages for lengthofline.m.

checkcode('lengthofline', '-cyc')

% Copyright 2012 The MathWorks, Inc.