State Space block state vector value

7 vues (au cours des 30 derniers jours)
Raha Hojjati
Raha Hojjati le 18 Fév 2019
Modifié(e) : Aquatris le 18 Fév 2019
Hello,
I am using Simulink built in state spacestate space block. The input to this block is u, and the output is y.
I also need the x value, the state vector. How can I extract this value from the built in state space block.

Réponses (1)

Aquatris
Aquatris le 18 Fév 2019
Modifié(e) : Aquatris le 18 Fév 2019
To do that you need to specify your states as outputs by modifying your C matrix.
C = [1 2 3 4]; % original C matrix that gives the system output
% for a 4 state system
Ce = [eye(4)
C]; % modified C matrix where the system gives 5 outputs,
% first 4 are the states, 5th is the actual output

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by