Does anyone have an idea to create a Triangle waveform?

The reason I require this is because I require to compare a Sinewave and a Triangle to create a SPWM.

In another I need the MATLAB assistant to calculate the duty cycle in order to create a lookup table.

Your help is very important for my understanding

Similar questions and discussions