Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [-5 1 6;
-5 5 -5;
4 9 2];
y_correct = 27;
assert(isequal(your_fcn_name(x),y_correct))
b =
9×1 logical array
0
0
1
1
1
1
1
0
1
|
2 | Pass |
x = [ -2 2 -2 13;
5 11 10 8;
-2 7 -2 12;
4 14 15 1];
y_correct = 102;
assert(isequal(your_fcn_name(x),y_correct))
b =
16×1 logical array
0
1
0
1
1
1
1
1
0
1
0
1
1
1
1
1
|
Program an exclusive OR operation with logical operators
639 Solvers
Return elements unique to either input
550 Solvers
Sum the numbers on the main diagonal
453 Solvers
521 Solvers
261 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!