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))
|
12381 Solvers
15296 Solvers
4329 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Matlab Basics - y as a function of x
339 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!