Controllable and observable canonical form

์กฐํšŒ ์ˆ˜: 48 (์ตœ๊ทผ 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 Center ๋ฐ File Exchange์—์„œ Pulsed Waveforms์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by