Here is a good discussion about three phase controlled rectifier that I found on youtube. The video show how to build a three phase rectifier using simulink. You can actually check it out.: "Simulation of Three Phase Rectifier("")":https://www.youtube.com/watch?v=INKdO3RhYQU
For the coding part, I think there are examples available at the mathworks website.