Z-transform Commands with Examples

 ​​ ​​ ​​ ​​ ​​ ​​​​ 

 ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ Z-Transform Commands:

 

 

Example :01 ​​ ​​​​ 

Roots Command

 

b = [1 1];

a = [1 2 3];

roots(a)​​ 

roots(b)

 

OUTPUT:

ans =

 ​​​​ -1.0000 + 1.4142i

 ​​​​ -1.0000 - 1.4142i

ans =

 ​​ ​​ ​​​​ -1

 

Example :02 ​​​​ 

freqz Command

 

yqDxAnJGRPxf4dvHEDeW8IEAAAAASUVORK5CYII= - Z-transform Commands with Examples

 

Example :03

zplane Command

KdFpBzlJK+X+TVOplcZmCCQAAAABJRU5ErkJggg== - Z-transform Commands with Examples

 

 

Example :04

tf2zp Command

 

b = [1 1];

a = [1 2 3];

[z p k] = tf2zp(b,a)

 

OUTPUT:

z =

 

 ​​ ​​ ​​​​ -1

p =

 

 ​​​​ -1.0000 +​​ 1.4142i

 ​​​​ -1.0000 - 1.4142i

k =

 

 ​​ ​​ ​​ ​​​​ 1

 

Example :05

zp2tf Command

 

b = [1 1];

a = [1 2 3];

[b a] = zp2tf(z,p,k)

​​ 

OUTPUT:

b =

 

 ​​ ​​ ​​ ​​​​ 0  ​​ ​​ ​​​​ 1  ​​ ​​ ​​​​ 1

a =

 

 ​​ ​​ ​​​​ 1.0000  ​​ ​​​​ 2.0000  ​​ ​​​​ 3.0000