How to create a sine function from simulink blocks?
5 ビュー (過去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1345454/image.png)
Result:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1345459/image.png)
0 件のコメント
採用された回答
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
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 Center および File Exchange で Event Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!