필터 지우기
필터 지우기

How to you put sin function in Simulink

조회 수: 4 (최근 30일)
Khang Nguyen
Khang Nguyen 2022년 10월 9일
편집: Paul 2022년 10월 9일
How do you put this function in simulink .
-2 cos(t/2)+2
I tried using the sine wave sine block in simulink but can not plot this graph.

채택된 답변

Paul
Paul 2022년 10월 9일
편집: Paul 2022년 10월 9일
Feed the output of a Clock into a Gain of 1/2. Feed the touput of that gain into a Trigonmetric Function block, select the cos option. Feed the output of that into a Gain of -2. Feed the output of that into a Bias block, set the parameter to 2.
Or use the fact that
cos(t/2) == sin(t/2 + pi/2)
So we can use the Sine Wave block with parameters:
Amplitude = -2
Frequency = 1/2
Phase = pi/2
Bias = 2

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by