Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [3 -2 -4];
y_correct = [ 1.5352
-0.8685];
assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)
y =
1.5352
-0.8685
|
2 | Pass |
x = [1 2 1];
y_correct = [-1;-1];
assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)
y =
-1
-1
|
3 | Pass |
x = [1 2 2];
y_correct = [ -1.0000 + 1.0000i
-1.0000 - 1.0000i];
assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)
y =
-1.0000 + 1.0000i
-1.0000 - 1.0000i
|
4107 Solvers
Getting the row and column location from a matrix
236 Solvers
412 Solvers
323 Solvers
134 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!