Info

この質問は閉じられています。 編集または回答するには再度開いてください。

script function pulse rectangle PWM with duty cycle in simulink

17 ビュー (過去 30 日間)
Julio Vela
Julio Vela 2020 年 10 月 14 日
閉鎖済み: Sabin 2026 年 1 月 2 日 12:06
I can't make the pulse width repeat in every time period. I just need that in the code
  5 件のコメント
Julio Vela
Julio Vela 2021 年 2 月 12 日
編集済み: Julio Vela 2021 年 2 月 12 日
its easy translate:
function PWM = fcn(amplitude,duty_cycle,requency,clock)%generator PWM
% *** declaración de variables ***
periode=1/frequency;%periodo=period
iduty=duty_cycle/100;
ton=iduty*periode;
toff=periode-ton;
if ((mod((clockt),periode)<=(0)))
PWM=amplitude;
else
PWM=0;
end
end
Julio Vela
Julio Vela 2021 年 2 月 17 日
i resolved the problem!!!
https://www.youtube.com/channel/UCN7owHyMvoT7I6dv2eah6dA/videos

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by