Cody

Solution 608839

Submitted on 31 Mar 2015 by J.R.! Menzinger
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
%% x = 1; assert(isequal(are_variables(x),1))

ans = 1

2   Pass
%% x = 1; assert(isequal(are_variables(1),0))

ans = 0

3   Pass
%% x = 1; assert(isequal(are_variables('x'),0))

ans = 0

4   Pass
%% assert(isequal(are_variables('x',1,2),0))

ans = 0

5   Pass
%% a = 1; b=0; assert(isequal(are_variables(a,b),1))

ans = 1

6   Pass
%% assert(isequal(are_variables(1,2,3,4,5),0))

ans = 0

7   Pass
%% a = 1; assert(isequal(are_variables(a,a,a),1))

ans = 1

8   Pass
%% a = 1; b=0; c=ones(5); assert(isequal(are_variables(a,'a'),0))

ans = 0

9   Pass
%% x = 1; y=0; zz=ones(5); assert(isequal(are_variables(zz,'a'),0))

ans = 0

10   Pass
%% x = 1; y=0; z=ones(5); assert(isequal(are_variables(x,y,z),1))

ans = 1