Cody

Solution 165724

Submitted on 20 Nov 2012 by Sourav Mondal
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 = Columns 1 through 7 1.00 2.00 3.00 4.00 5.00 6.00 7.00 Columns 8 through 10 8.00 9.00 10.00 y = Columns 1 through 7 1.00 2.00 3.00 4.00 5.00 6.00 7.00 Columns 8 through 10 8.00 9.00 10.00
2   Pass
%% x = [1:10 NaN]; y = x; z = true; assert(isequal(are_equal(x,y),z));
x = Columns 1 through 7 1.00 2.00 3.00 4.00 5.00 6.00 7.00 Columns 8 through 11 8.00 9.00 10.00 0 y = Columns 1 through 7 1.00 2.00 3.00 4.00 5.00 6.00 7.00 Columns 8 through 11 8.00 9.00 10.00 0
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.00 4.00 6.00 0 8.00 y = 2.00 4.00 0 6.00 8.00