How to create a PWM signal but big frequency modified auto
1 次查看(过去 30 天)
显示 更早的评论
I have y=a*sin(t), 0.7<a<1? To derive a PWM signal from a sinusoidal wave based on its magnitude,
what can i do to create PWM signal a big frequency but when (y) modified => PWM frequency change
0 个评论
回答(1 个)
Fangjun Jiang
2011-9-11
I don't understand what you mean "big frequency modified auto", but to derive the PWM signal, you just need to compare the y with a constant, for example, 0.8. Use the "Relational Operator" block from simulink->Logic and bit Operations.
You could double the frequency if you compare the constant with abs(a*sin(t)).
0 个评论
社区
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!