Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
y_correct = [ ...
0 0
0 0 ];
assert(isequal(matrix_zeros(x),y_correct))
|
2 | Pass |
x = 6;
y_correct = [ ...
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0];
assert(isequal(matrix_zeros(x),y_correct))
|
3 | Pass |
x = 1;
y_correct = 0;
assert(isequal(matrix_zeros(x),y_correct))
|
Remove the two elements next to NaN value
411 Solvers
856 Solvers
Create an index-powered vector
352 Solvers
525 Solvers
07 - Common functions and indexing 3
317 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!