Transform a MIMO system to state space.
162 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Paul
il 25 Ott 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Computations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!