Transform a MIMO system to state space.
162 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Paul
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Computations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!