Cos function in simulink
185 次查看(过去 30 天)
显示 更早的评论
Is there any way I could get a cosine wave source in Simulink rather than just a sine wave?
0 个评论
回答(1 个)
Star Strider
2017-12-15
编辑:Star Strider
2017-12-15
Take the derivative of the sine?
8 个评论
Star Strider
2017-12-19
An even easier way to do it is to select the continuous-time Sin block from Sources, then use Block Parameters (Sin) set the Amplitude, Frequency, and then set Phase to pi/2. That defines a Cosine source!
I did this, and verified it with the Scope block that it was indeed producing a cosine curve.
I have not used Simulink in a few years, and it changed in the last few releases. It took me a while to explore it.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!