Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1;
assert(isequal(magnitude(x),y_correct))
|
2 | Pass |
x = [1 1];
y_correct = sqrt(2);
assert(isequal(magnitude(x),y_correct))
|
3 | Pass |
x = [1 2];
y_correct = sqrt(5);
assert(isequal(magnitude(x),y_correct))
|
4 | Pass |
x = [1 1 1];
y_correct = sqrt(3);
assert(isequal(magnitude(x),y_correct))
|
5 | Pass |
x = [1 1 1 1];
y_correct = sqrt(4);
assert(isequal(magnitude(x),y_correct))
|
6 | Pass |
x = [1 1 1 2];
y_correct = sqrt(7);
assert(isequal(magnitude(x),y_correct))
|
2515 Solvers
All your base are belong to us
425 Solvers
Is my wife right? Now with even more wrong husband
1145 Solvers
Back to basics 25 - Valid variable names
253 Solvers
find the maximum element of the matrix
254 Solvers