How to create a sine function from simulink blocks?

6 次查看(过去 30 天)
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