Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3];
y_correct = 3.7417;
assert(abs(vector_mag(x)-y_correct)<0.0001)
y =
0
|
2 | Pass |
x = [-1 5 -6];
y_correct = 7.8740;
assert(abs(vector_mag(x)-y_correct)<0.0001)
y =
0
|
3 | Pass |
x = [3 4 5];
y_correct = 7.0711;
assert(abs(vector_mag(x)-y_correct)<0.0001)
y =
0
|
4 | Pass |
x = [5 5 -5];
y_correct = 8.6603;
assert(abs(vector_mag(x)-y_correct)<0.0001)
y =
0
|
5 | Pass |
isempty(regexp(evalc('type vector_mag'),'sum'))
ans =
logical
1
|
276 Solvers
Omit columns averages from a matrix
482 Solvers
Check if number exists in vector
2311 Solvers
Matlab Basics II - Log and natural log
100 Solvers
find the surface area of a cube
215 Solvers