Cody

Solution 2266999

Submitted on 9 May 2020 by Mark Posen
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

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

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

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 4 6 -9999 8 y = 2 4 -9999 6 8

Suggested Problems

More from this Author39