How to simulate a selective hormonic elimination in a single phase DC to AC inverter?

Hello, since this is a generic power conversion question and not PLECS-related (and there are many techniques for what you are asking about), I suggest you search for this topic in technical literature from the community, such as on IEEExplore.