This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(isequal(McCabe('polyval.m'),19)); % polyval
%message: 'The McCabe complexity of 'polyval' is 19.'
s =
message: 'The McCabe complexity of 'polyval' is 19.'
line: 1
column: [23 29]
fix: 0
|
2 | Pass |
%%
assert(isequal(McCabe('residue.m'),21));
%2x1 struct array with fields:
s =
2x1 struct array with fields:
message
line
column
fix
|
3 | Pass |
%%
assert(isequal(McCabe('polyeig.m'),18));
s =
2x1 struct array with fields:
message
line
column
fix
|
4 | Pass |
%%
assert(isequal(McCabe('roots.m'),7));
% message: 'The McCabe complexity of 'roots' is 7.'
s =
message: 'The McCabe complexity of 'roots' is 7.'
line: 1
column: [14 18]
fix: 0
|
5 | Pass |
%%
assert(isequal(McCabe('decic.m'),14));
%3x1 struct array with fields:
s =
3x1 struct array with fields:
message
line
column
fix
|
17464 Solvers
962 Solvers
894 Solvers
420 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!