This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
data = [0 0 5;1 1 2;2 2 7;3 3 8;1 1 6];
output = [NaN NaN NaN 8;NaN NaN 7 NaN;NaN 6 NaN NaN;5 NaN NaN NaN];
assert(isequalwithequalnans(data2matrix(data),output))
|
2 | Pass |
data = [];
output = [NaN NaN NaN NaN;NaN NaN NaN NaN;NaN NaN NaN NaN;NaN NaN NaN NaN];
assert(isequalwithequalnans(data2matrix(data),output))
|
3 | Pass |
data = [0 0 -5;1 1 -2;2 2 -7;3 3 -8;1 1 -6];
output = [NaN NaN NaN -8;NaN NaN -7 NaN;NaN -6 NaN NaN;-5 NaN NaN NaN];
assert(isequalwithequalnans(data2matrix(data),output))
|
9840 Solvers
213 Solvers
235 Solvers
Wind outward from the center ...
67 Solvers
Getting the row and column location from a matrix
236 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!