# getting z transform in factored form?using Matlab?

조회 수: 16(최근 30일)
ABTJ 24 Feb 2020
댓글: Star Strider 25 Feb 2020
How we can get z transform in factored form if we have z,p and k?I have also attached snapshot of z transform below I can use matlab command tf2zp for finding z,p and k.
(z,p,k)=tf2zp(n,d) where n=numerator of H(z) and d=denominator of H(z)
But from there onwards how can i then proceed to find factored form?
Is it better to use matlab function zp2sos ??

#### 댓글 수: 1

Walter Roberson 24 Feb 2020
poly2sym() and factor()?

로그인 to comment.

### 답변(1개)

Star Strider 24 Feb 2020
Control System Toolbox:
z = tf('z');
H = (4*z^2 + 3*z + 9) / (4*z^2 + 3*z - 4);
zsys = zpk(H);
Z = [zsys.Z{:}]
P = [zsys.P{:}]
K = zsys.K
Z =
-0.375 + 1.45236875482778i
-0.375 - 1.45236875482778i
P =
-1.44300046816469
0.693000468164691
K =
1

#### 댓글 수: 2

ABTJ 25 Feb 2020
I get error when i copy paste your code Star Strider 25 Feb 2020
My code obviously works in R2019b.
Z = cell2mat(zsys.Z)
P = cell2mat(zsys.P)
K = zsys.K

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

R2015a