Transform a MIMO system to state space.
34 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to transform the following MIMO system to state space with the following code:
nums = {[1 -1] [1 7.5];[1 0] 6.5};
dens = [1 1 6.5];
sys = tf(nums,dens)
[A,B,C,D] = tf2ss(sys)
I wanted to know a way to transform transfer functions from a MIMO system to state space.
0 commentaires
Réponse acceptée
Paul
le 25 Oct 2021
Therer really isn't a need to use tf2ss anymore. The functions tf(), ss(),and zpk() can be used to convert from one form to another. In this case:
nums = {[1 -1] [1 7.5];[1 0] 6.5};
dens = [1 1 6.5];
systf = tf(nums,dens)
sysss = ss(systf)
The matrices in the state space model can be accessed with dot indexing
sysss.A
Note that the result of ss() when coverting a MIMO tranfer function matrix will typically be non-minimal. In this case sysss has four states, when only two are needed.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dynamic System Models 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!