This is a matlab Simulation for obtaining conduction and switching losses in Three-Phase OHSW(optimized harmonic stepped wafeform) cascaded 9-level inverter.The simulation has been done in several SUBSYSTEMS.The first one produces switching functions base