The attached script provides some examples of typical space vector PWM functions. Individual schemes can be plotted, showing the modulation function, neutral voltage, and line-to-line voltages.
The script plots various space vector modulation functions described in published technical papers. The first approach for three-phase voltage signal inputs determines the appropriate neutral voltage injection signal to achieve a specific behavior such as minimizing the magnitude of the modulation function, switching edges, or the harmonic content. A second approach determines the modulation functions for alpha-beta vector representation of the inverter voltage and calculates switching times by determining the appropriate combination of inverter switching states(V0)-V(8). The script is for educational purposes and based on publicly available material such as the two papers reference here. The description for the the 'modulation' type is taken from these papers:
Ahmet M. Hava, Russel J. Kerkman, and Thomas A. Lipo, “Simple Analytical and Graphical Methods for Carrier-Based PWM-VSI
Drives” IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 14, NO. 1, JANUARY 1999
Keliang Zhou and Danwei Wang “Relationship Between Space-Vector Modulation and Three-Phase Carrier-Based PWM: A Comprehensive Analysis” IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 49, NO. 1, FEBRUARY 2002