Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1];
y_correct = [0 0 0
0 1 0
0 0 0];
assert(isequal(zeroWrap(x),y_correct))
|
2 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(m(2:end-1,2:end-1),x))
|
3 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(sum(m(1,:)),0))
|
4 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(sum(m(end,:)),0))
|
5 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(sum(m(:,1)),0))
|
6 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(sum(m(:,end)),0))
|
7 | Pass |
x = randi(10,4,5);
m=zeroWrap(x);
assert(isequal(size(m)-2,size(x)))
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
Arrange vector in ascending order
624 Solvers
Find the square of the sum of the digits of a number
119 Solvers
Determine the length of a string of characters
172 Solvers
Pernicious Anniversary Problem
735 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!