Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [0 1 -1 0];
ac_correct = [0 1 -1 0];
dc_correct = 0;
[ac dc] = acDC(x);
assert(isequal(ac,ac_correct))
assert(isequal(dc,dc_correct))
|
2 | Pass |
x = [5 6 4 5];
ac_correct = [0 1 -1 0];
dc_correct = 5;
[ac dc] = acDC(x);
assert(isequal(ac,ac_correct))
assert(isequal(dc,dc_correct))
|
54229 Solvers
9833 Solvers
321 Solvers
379 Solvers
175 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!