Cody

Solution 663122

Submitted on 29 Apr 2015 by Jonathan Campelli
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:10]; y = x; z = true; assert(isequal(are_equal(x,y),z));

x = 1 2 3 4 5 6 7 8 9 10 y = 1 2 3 4 5 6 7 8 9 10 ans = 1

2   Pass
%% x = [1:10 NaN]; y = x; z = true; assert(isequal(are_equal(x,y),z));

x = Columns 1 through 9 1.0000 2.0000 3.0000 4.0000 5.0000 6.0000 7.0000 8.0000 9.0000 Columns 10 through 11 10.0000 3.1416 y = Columns 1 through 9 1.0000 2.0000 3.0000 4.0000 5.0000 6.0000 7.0000 8.0000 9.0000 Columns 10 through 11 10.0000 3.1416 ans = 1

3   Pass
%% x = [2 4 6 NaN 8]; y = [2 4 NaN 6 8]; z = false; assert(isequal(are_equal(x,y),z));

x = 2.0000 4.0000 6.0000 3.1416 8.0000 y = 2.0000 4.0000 3.1416 6.0000 8.0000 ans = 0