Setting the initial output value for state space block in MATLAB
조회 수: 4 (최근 30일)
이전 댓글 표시
I've got the following control loop in Simulink:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/547893/image.png)
What I'm trying to do is to set the initial value for the output to be 23, right now it starts from 0 and I can't find any explanation how that's done, these are my ABCD parameters which I got from my 2nd order Transfer Function:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/547898/image.png)
I hope I have provided enough information.
댓글 수: 0
답변 (1개)
Gobiha Duraisamy
2022년 6월 10일
Initial condition in the state-space block corresponds to the initial condition of the states x and not the initial condition of the output y.
In your case, the C matrix which relates states and output has a scaling factor. The desired initial output along with the state-space equation could be used to compute the initial condition of the states. But this is not straightforward.
Alternatively, State-Space with Initial Outputs block allows you to specify initial outputs directly. This block can be found under Simulink Extras > Additional Linear.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Additional Math and Discrete에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!