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))
|
1800 Solvers
Check that number is whole number
1070 Solvers
212 Solvers
88 Solvers
136 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!