Cody

Solution 126129

Submitted on 10 Aug 2012 by @bmtran
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% fn='interp1.m'; y=Cody_size(fn); y_expected=2218; assert(isequal(y,y_expected))
ans = mtree (complete: 2218 nodes) ans = 2218
2   Pass
%% fn='Cody_size.m'; y=Cody_size(fn); t = mtree(fn,'-file'); y_expected = length(t.nodesize); assert(isequal(y,y_expected))
ans = mtree (complete: 17 nodes) ans = 17
3   Pass
%% fn='polyarea.m'; y=Cody_size(fn); y_expected=196; assert(isequal(y,y_expected))
ans = mtree (complete: 196 nodes) ans = 196