Hi Somadina,
I recommend exploring the "PR Controller" model available on MATLAB Central File Exchange: PR Controller - https://www.mathworks.com/matlabcentral/fileexchange/119348-pr-controller
The model provides a robust framework for implementing Proportional-Resonant (PR) controllers, which can be adapted to suit the specific requirements of your control system. You may need to modify the model parameters to incorporate the proportional gain ( K_c ) and ensure compatibility with the transfer function of your LTI plant.
Hope this helps!