Hi @Peter,
You can access the example titled "SVPWM based speed control of PMSM with 3-level Inverter" on MATLAB Central File Exchange. This resource provides a comprehensive framework for understanding the dynamics of a 3-level inverter in conjunction with PMSM control.
Hope this helps.