MATLAB switching problem

Discussion in 'The Projects Forum' started by Soo Chin Chong, Sep 1, 2016.

  1. Soo Chin Chong

    Thread Starter New Member

    Aug 24, 2016
    HI, I am new in MATLAB. I design an Active power filter (APF) with constant frequency integration control for single phase application. I having some switching problem. Previously I using PSCAD software achieved a good result with current total harmonic distortion less than 4%. However, in MATLAB I getting the result but that had a lot of noise or ripple as shown in the figure below.

    May I know why this happen and how can I solve it?

    Thank you. APF current.PNG FFT of current.PNG