Bipolar/unipolar of single phase inverter based SPWM

Two different switching strategies are used in Sinusoidal Pulse Width Modulation (SPWM) for controlling a single-phase inverter.
77 Downloads
Updated 30 Apr 2025

View License

Bipolar SPWM:
  • A single sine reference signal is compared with a high-frequency triangular carrier.
  • If sine > triangle → output = +Vdc
  • If sine < triangle → output = -Vdc
Result:
  • Output voltage swings between +Vdc and -Vdc.
  • Only two levels, so more harmonics.
🔸 Unipolar SPWM:
  • Two sine reference signals (180° out of phase) are compared with the carrier.
  • Based on comparisons:
  • Output can be +Vdc, 0, or -Vdc.
  • Switching between levels is more gradual.
Result:
  • Lower switching stress
  • Reduced harmonic content
  • More efficient for most applications

Cite As

Abdelrahman Farghly (2026). Bipolar/unipolar of single phase inverter based SPWM (https://uk.mathworks.com/matlabcentral/fileexchange/180930-bipolar-unipolar-of-single-phase-inverter-based-spwm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0