Transform a MIMO system to state space.
조회 수: 167 (최근 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에서 Matrix Computations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!