Cos function in simulink
조회 수: 264 (최근 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에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!