Cody

Solution 1481619

Submitted on 6 Apr 2018 by J. S. Kowontan
  • Size: 17
  • This is the leading solution.
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

More from this Author43