Cody

Solution 1794430

Submitted on 21 Apr 2019 by Yoav Shallev
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = [1]; y_correct = [0 0 0 0 1 0 0 0 0]; assert(isequal(zeroRap(x),y_correct))

2   Pass
x = randi(10,4,5); y_correct = x; m=zeroRap(x); assert(isequal(m(2:end-1,2:end-1),y_correct))

3   Pass
x = randi(10,4,5); m=zeroRap(x); assert(isequal(sum(m(1,:)),0))