Controllable and observable canonical form

조회 수: 46 (최근 30일)
M. M.  Farhad
M. M. Farhad 2017년 2월 21일
댓글: Star Strider 2022년 6월 12일
Hi, I want to convert a transfer function to controllable and observable canonical form. Tried with tf2ss but it did not work. I am sharing a part of my code. Is there any way to get those A,B,C,D matrices by any Matlab functions??
My code:
clc; clear all;
Den=[0 1 1]; Num=[1 5 6];
s=tf(Den,Num)
[A B C D]=tf2ss(s)

채택된 답변

Star Strider
Star Strider 2017년 2월 21일
편집: Star Strider 2017년 2월 21일
The tf2ss function wants a transfer function as input, not a system object.
Try this:
[A B C D]=tf2ss(Den,Num)
A =
-5 -6
1 0
B =
1
0
C =
1 1
D =
0
EDIT
To get the state space representation from a system object, just use the ss funciton:
[A B C D] = ss(s);
  댓글 수: 5
Mohamed Ibrahim
Mohamed Ibrahim 2018년 1월 1일
It is, yes.
Shady Hassan
Shady Hassan 2018년 3월 31일
its the other way around, controllability and observability matrices are reversed in zour explanation above..

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Mackyle Naidoo
Mackyle Naidoo 2022년 6월 11일
i would like to obtain the state space repsentation for controllable , observable and diagonal canonical form
using the following transfer function of the 𝑌𝑌(𝑠𝑠) 𝑈𝑈(𝑠𝑠) = 𝑠 + 4 /𝑠^2 + 13s + 42. Using matlab code to get the desired outcome can anyone help?
  댓글 수: 5
Mackyle Naidoo
Mackyle Naidoo 2022년 6월 12일
@Sam Chak transfer function in matlab is as follows
g = tf ([1,4],[1^2 13 42])
@star strider how do i post this as a new question ?
Star Strider
Star Strider 2022년 6월 12일
Start here.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Computations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by