simulink -sinx integral
2 ビュー (過去 30 日間)
古いコメントを表示
As I know, integral -sinx dx is cosx
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1698486/image.png)
but, in sinulink there is offset !
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1698491/image.png)
0 件のコメント
回答 (1 件)
Paul
2024 年 5 月 19 日
編集済み: Paul
2024 年 5 月 20 日
Hi 승표,
It's not really an offset. The Integrator block parmameter 'Initial Condition' is set to zero, which corresponds to setting the constant of integration C = -1 in the solution for the antiderivative. Double click on the Integrator block and set the Initival Condition parameter to whatever is needed to get the desired result.
Another way to think of it is that the output of the Intregator block is: x0 + int(-sin(tau) dtau, from 0, to x)
(thought it it looks like your actual, input sine wave is at a higher frequency).
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!