This solution is outdated. To rescore this solution, sign in.
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))
|
The Hitchhiker's Guide to MATLAB
2874 Solvers
376 Solvers
convert matrix to single column
307 Solvers
420 Solvers
264 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!