how to build 2 triangle waves in matlab is in phase disposition 1000Hz to compare with sin wave to create PWm signal like this picture in 3 level inverter NPC