I have designed a sinePWM Inverter with following specifications
Vin=24V, Vout=230V
frequency of triangular wave=1000Hz
frequency of sine wave=50Hz
a step-up transformer is also used.
Designed MATLAB file is attached
an LC filter is required for obtaining a sinusoidal output.