Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = pi;
[y,z] = cos_abs(x)
assert(isequal(y/z,-1))
y =
1
z =
-1
|
2 | Pass |
x = pi/2;
[y,z] = cos_abs(x)
assert(isequal(y/z,-1))
y =
1
z =
-1
|
3 | Pass |
x = pi/4;
[y,z] = cos_abs(x)
assert(isequal(y/z,-1))
y =
1
z =
-1
|
1600 Solvers
1763 Solvers
17138 Solvers
Matrix indexing with two vectors of indices
485 Solvers
241 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!