Transform a MIMO system to state space.
74 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Paul
2021-10-25
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pole and Zero Locations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!