Why the integration of a sin() function, with the integrator block of simulink, doesn't give a waveform of -cos()??

 採用された回答

Grzegorz Knor
Grzegorz Knor 2011 年 9 月 6 日

3 投票

What is your initial condition? Maybe 0?
In this case should be -1.

2 件のコメント

Grzegorz Knor
Grzegorz Knor 2011 年 9 月 6 日
hint: Initial condition you could set in Parameters and Dialog Box.
Paulo Silva
Paulo Silva 2011 年 9 月 6 日
Good answer, having initial condition -1 instead of 0 solves the problem, +1 vote

サインインしてコメントする。

その他の回答 (1 件)

Fabio
Fabio 2011 年 9 月 7 日

0 投票

Thanks Grzegorz,
I can see a cosine waveform but there is a peak upper than 1(almost 6), when the sine has an amplitude of 1. Do you know the reason of that behaviour?

カテゴリ

ヘルプ センター および File Exchange で Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by