Cody

Solution 75653

Submitted on 13 Apr 2012
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   Fail
%% XXX = @(z)cos(z); assert(isequal(wine_tester(XXX),'old wine')) % cos
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
2   Fail
%% XXX = @(z)sqrt(1-cos(z)^2); assert(isequal(wine_tester(XXX),'old wine')) % sin
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
3   Fail
%% XXX = @(z)cos(z)^2+10; assert(isequal(wine_tester(XXX),'new wine')) %
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
4   Fail
%% XXX = @(z)log10(10*z)-1; assert(isequal(wine_tester(XXX),'old wine')) % log10
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
5   Fail
%% XXX = @(z)sin(log10(z)*0+z); assert(isequal(wine_tester(XXX),'old wine')) % sin
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
6   Fail
%% XXX = @(z)sin(log10(z)); assert(isequal(wine_tester(XXX),'new wine')) %
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
7   Fail
%% XXX = @(z)cosd(z); assert(isequal(wine_tester(XXX),'old wine')) % cosd
Error: Undefined function 'lt' for input arguments of type 'function_handle'.
8   Fail
%% XXX = @(z)exp(z); assert(isequal(wine_tester(XXX),'old wine')) % exp
Error: Undefined function 'lt' for input arguments of type 'function_handle'.