How can be generated aperiodic triangle carrier signal for PWM

1 view (last 30 days)
I would like to generate triangle signal starts from 0 degree and stops at 60 degree and then starts at 120 degree and stops at 180 degree for half cycle sine wave reference, and then it is repeat itself. If possible by coding or simulink. The attached picture would explain the required triangle wave.
  2 Comments
ali al-khayyat
ali al-khayyat on 24 Aug 2019
Hi, I have used that, but it generate normal triangle wave. Do you know how to generate triangle with variable frequency or as I asked above, please?

Sign in to comment.

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 28 Aug 2019
Hi Ali,
for your problem, sawtooth() function does not work. Instead you'd need to employ triangular pulse generator function tripuls() (see the link:https://www.mathworks.com/help/signal/ref/tripuls.html)
Sub-divide the time space into 6 subsections t1 = [0, 60]; t2 = [50, 120]; t3 = [...], ..., t6 = [300, 360]; generate triangular pulse where you need (section 1, 3 and reversed ones in section 4 and 6).
Good luck
  1 Comment
Nandhini
Nandhini on 6 Apr 2023
Can you please elabrate more about these... i am also want to generate Aperiodic traiangle wave

Sign in to comment.

Tags

Products


Release

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!