Simulink integrator block initial conditions

Hi, How does one specify initial conditions in simulink integrator block for times not t= 0 for example, y(3) =5;

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2019년 2월 5일

1 개 추천

utilize the "External reset" (set as rising) and "Initial ocndition source" (set as external).
Compare clock with t=3 and make it as the "External reset" signal.

댓글 수: 4

Thanks, very helpful.
Wang Tao
Wang Tao 2021년 4월 23일
Could you give the details of how to "Compare clock with t=3 and make it as the "External reset" signal."
What does "compare clock" mean, and I linked the clock to the "External reset" and the answer has no chage.
A picture on how to set them will be be grateful. Many thanks
Compare Clock with Constant block (value is 3) using the Relational Operator block, the output is trur or false.
Wang Tao
Wang Tao 2021년 4월 24일
Thanks for the prompt reply! I can get the answer for the time after t=3 with the y(3)=5 now. But the problem is for the time earilier than 3 as t<3, is not correct.
I am handling some two point boundary value problem, which y(3)=5 is the end/ final condition. Is there any way to solve this.
It seems can change the initial setting of integrator through properties, but there are no final condition settings.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

제품

릴리스

R2018b

질문:

2019년 2월 5일

댓글:

2021년 4월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by