Filter löschen
Filter löschen

Setting the initial output value for state space block in MATLAB

4 Ansichten (letzte 30 Tage)
Aliasghar Tabrizi
Aliasghar Tabrizi am 13 Mär. 2021
Beantwortet: Gobiha Duraisamy am 10 Jun. 2022
I've got the following control loop in Simulink:
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:
I hope I have provided enough information.

Antworten (1)

Gobiha Duraisamy
Gobiha Duraisamy am 10 Jun. 2022
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.

Kategorien

Mehr zu Additional Math and Discrete finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by