Space vector modulation adds third harmonic automatically. Min -max is a technique which emulates space vector modulation with sine to triangle comparison.
So in your in your modulator you should compare 3 sinusoid (one for inverter leg) against a triangle: dont send the sinusoid straight into the comparator but find the max and the min of the 3 waveforms; divide it by 2 and add the risult on each. Send the sum to the comparator.
If you display the waveform resulting from the min-max search and use as modulating waveforms 3 sinusoid 120 deg shift, you will find a triangular wave with a frequency three times the sinusoid frequency (the third harmonic...!) and the input of the comparator will look like the classical space vector modulation waveform,
See in the picture: red min-max output, green comparator input.
I did it with Orcad Pspice, but Matlab/Simulink would also fit . Find attached the schematic for two level inverter; For three level inverter you can use the same circuit to generate the modulating signals and two triangular carrier instead of one as in the example.