Problem 127. DC chopper

Created by Amitava Biswas

Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then change sign alternately, for example, input [1:5], output [3 -3 3 -3 3].

Tags

Problem Group

55 solvers submitted 103 solutions (1.87 solutions/solver).