Strange integral result in Simulink

조회 수: 4 (최근 30일)
GreenPiece
GreenPiece 2019년 7월 8일
Hi everyone,
I tried to integrate a signal in the Simulink as follows:
  • In the first case:
2019-07-08_171433.jpg
The ld_d signal is blue which is output from a matlab function block. Clearly, its value are negative during the simulation time. However, the integrated signal is positive. I cannot understand how it could happen.
  • In the second cas, I tried to save the ld_d to .mat file then load it again into other simulink file and do the integrating. The integrated result in this implementation is negative which I expected.
Could you please explain why the signal ld1 can be positive in the first case.
The following is the result of the first case.
Thanks in advanced!
2019-07-08_171713.jpg

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by