How can be generated aperiodic triangle carrier signal for PWM

4 次查看(过去 30 天)
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 个评论
ali al-khayyat
ali al-khayyat 2019-8-24
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?

请先登录,再进行评论。

回答(1 个)

Sulaymon Eshkabilov
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

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

标签

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by