Bipolar/unipolar of single phase inverter based SPWM
Version 1.0.0 (46.9 KB) by
Abdelrahman Farghly
Two different switching strategies are used in Sinusoidal Pulse Width Modulation (SPWM) for controlling a single-phase inverter.
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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |