Gating Sequence for MOSFET in Simulink for a Resistive load Microinverter
The simplest method is always a good place to start.

From sources place a repeating sequence and configure it as a triangle wave... Peak of 1, freq 10k.

Also as a sinus source. Peak of 1, freq of 50Hz

Add a compare block (under discrete) and send the sine wave to input 1 and the triangle to input 2.

Consider the numbering of the MOSFETS

1 3
4 2


Send the outout of the compare block to MOSFETs 1 &amp; 2.  Add a logic inverter and send the inverted signal to 3 &amp; 4

This is a simple open loop sinus generator. Once this is working, more complicated strategies can be used