File Exchange

image thumbnail

3 Phase Inverter

version (15.4 KB) by Rashmil Dahanayake
DC-AC PWM inverter


Updated 17 Dec 2013

View Version History

View License

This model demonstrates a DC-AC converter.
3 leg Mosfet operated inverter is constructed .
Can be used to demonstrate the relationship of input DC, output voltage, modulation index , filter selection and switching frequency.
3rd harmonic injection features

Cite As

Rashmil Dahanayake (2021). 3 Phase Inverter (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (11)

Jairo Espinosa

Fabian Gock

When starting the simulation, the following error pops up:
Struct contents reference from a non-struct array object.
Component:Simulink | Category:Model error

Prashant yadav

huan liu


can anyone please mail me this circuit at
i just need it urgently

Aviti Mushi


I did not do this example. But I guess that Ts would be the switching period of the inverter therefore it would be defined in the PWM block.


Varun Raj

It's showing Error in Stop function. Error is (Vector Values are not matching).

Hien Nguyen



Hello Rashmil,
I have a question. Where do you define the sampling time (Ts) that is being load by the digital clock for the sinus reference signal for the PWM switching blocks? I would be very glad, if you would give me any advise soon.
Thanks in advance.

sergio palavecino

escelent model

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!