Cody

# Problem 125. Remove DC

Solution 1794238

Submitted on 21 Apr 2019
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   Fail
x = 1; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

y = -1

Index exceeds the number of array elements (1). Error in your_fcn_name (line 4) y = x(i)-2 Error in Test1 (line 3) assert(isequal(your_fcn_name(x),y_correct))

2   Fail
x = [2 0]; y_correct = [1 -1]; assert(isequal(your_fcn_name(x),y_correct))

y = 0 y = -2

Index exceeds the number of array elements (2). Error in your_fcn_name (line 4) y = x(i)-2 Error in Test2 (line 3) assert(isequal(your_fcn_name(x),y_correct))

3   Fail
x = 0:100; y_correct = -50:50; assert(isequal(your_fcn_name(x),y_correct))

y = -2 y = -1 y = 0 y = 1 y = 2 y = 3 y = 4 y = 5 y = 6 y = 7 y = 8 y = 9 y = 10 y = 11 y = 12 y = 13 y = 14 y = 15 y = 16 y = 17 y = 18 y = 19 y = 20 y = 21 y = 22 y = 23 y = 24 y = 25 y = 26 y = 27 y = 28 y = 29 y = 30 y = 31 y = 32 y = 33 y = 34 y = 35 y = 36 y = 37 y = 38 y = 39 y = 40 y = 41 y = 42 y = 43 y = 44 y = 45 y = 46 y = 47 y = 48 y = 49 y = 50 y = 51 y = 52 y = 53 y = 54 y = 55 y = 56 y = 57 y = 58 y = 59 y = 60 y = 61 y = 62 y = 63 y = 64 y = 65 y = 66 y = 67 y = 68 y = 69 y = 70 y = 71 y = 72 y = 73 y = 74 y = 75 y = 76 y = 77 y = 78 y = 79 y = 80 y = 81 y = 82 y = 83 y = 84 y = 85 y = 86 y = 87 y = 88 y = 89 y = 90 y = 91 y = 92 y = 93 y = 94 y = 95 y = 96 y = 97

Assertion failed.