In this video, I explained the simplest method to model a current-controlled grid-integrated inverter in MATLAB Simulink.
You can download the Simulink file presented in the video from here:
https://in.mathworks.com/matlabcentra...
For the design of the LC filter I referred to:
• Part 1: Inverter and filter design MATLAB ...