How to create a sine function from simulink blocks?

조회 수: 8 (최근 30일)
Jefferson
Jefferson 2023년 4월 4일
댓글: Paul 2023년 4월 4일
Note: It is not allowed to use sine wave block or similar
I am trying to create a simulink model to reproduce a sine wave Amplitude*sin(2*pi*f*t + angle).
The output must be a sine signal that will be used elsewhere in a simulink model. My attempt doesn't work, I don't know why.
Result:

채택된 답변

Paul
Paul 2023년 4월 4일
Why not just use a Sine Wave block? Would be a lot easier, and you can specify the sample time. The plot you're getting is most likely due to the solver settings for the time step.
  댓글 수: 1
Paul
Paul 2023년 4월 4일
Oh, well if you can't use the Sine Wave block what you have looks fine.
That plot on the scope is probably related to the solver settings. What are the settings on the Solver Pane for the solver and the step size control?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by