Today I finish off the design of Cross-connected MLI. The switching is based on PWM. It is quite challenging at first on how to determine the switching for each switch.
https://www.mathworks.com/matlabcentral/fileexchange/86648-cross-connected-mli-with-pwm