how to change initial conditions in Simulink?

Hi,
I would like to change initial condition in Unit Delay Block in Simulink. Variable X is changing in algebraic loop and when its value stabilizes it should take this value as a new initial condition.
I set initial condition for X: X(1)=200 then when it achieves certain value, let's say 400 and from then it is constant, i want it as a new initial condition. I find it difficult because in algebraic loop this final value (400) is not a single number but it's an element of matrix (as the time changes).
How could it be done? Cheers

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 20일

0 개 추천

The initial value of a unit delay block is taken in account at the beginning of the simulation, what is the purpose of changing it?

댓글 수: 1

Daniel
Daniel 2013년 11월 20일
편집: Daniel 2013년 11월 20일
My system is in a loop and it's supposed to work in cycles. So initial value is for the first cycle and then, within next cycles i want it to take a new value and do the same calculations of X in each cycle.

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

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2013년 11월 20일

편집:

2013년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by