Controllable and observable canonical form
Show older comments
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)
Accepted Answer
More Answers (1)
Mackyle Naidoo
on 11 Jun 2022
0 votes
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 Comments
Your transfer function looks strange when interpreted according to standard order of operations in inline math mode and computer programming.

If you this is not, please enter it in MATLAB code. I'll show an example:
If
, then type:
G = tf([2],[3 5])
Star Strider
on 11 Jun 2022
This should be posted as a new Question.
Mackyle Naidoo
on 12 Jun 2022
Mackyle Naidoo
on 12 Jun 2022
@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
on 12 Jun 2022
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!