Cody

Solution 1038968

Submitted on 31 Oct 2016 by Marc Jakobi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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))

Suggested Problems