This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = [0 1 0;
1 1 1;
0 1 0 ];
assert(isequal(cross(x),y_correct))
|
2 | Pass |
x = 5;
y_correct = [0 0 1 0 0;
0 0 1 0 0;
1 1 1 1 1;
0 0 1 0 0;
0 0 1 0 0]
assert(isequal(cross(x),y_correct))
y_correct =
0 0 1 0 0
0 0 1 0 0
1 1 1 1 1
0 0 1 0 0
0 0 1 0 0
|
Remove any row in which a NaN appears
6826 Solvers
308 Solvers
260 Solvers
2099 Solvers
320 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!