0% found this document useful (0 votes)
13K views

2/25/19 6:51 PM MATLAB Command Window 1 of 1: Undefined Function or Variable 'Numg'

The document contains MATLAB code that defines a continuous-time transfer function (h1) with a numerator of 5s^3 + 565s^2 + 16710s + 140400 and denominator of 6s^6 + 858s^5 + 40914s^4 + 717462s^3 + 3.629e06s^2 + 4.805e06s. It then defines the zeroes, poles and gain (K=5) to represent the transfer function as a zero-pole-gain model (G).

Uploaded by

Mad lol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13K views

2/25/19 6:51 PM MATLAB Command Window 1 of 1: Undefined Function or Variable 'Numg'

The document contains MATLAB code that defines a continuous-time transfer function (h1) with a numerator of 5s^3 + 565s^2 + 16710s + 140400 and denominator of 6s^6 + 858s^5 + 40914s^4 + 717462s^3 + 3.629e06s^2 + 4.805e06s. It then defines the zeroes, poles and gain (K=5) to represent the transfer function as a zero-pole-gain model (G).

Uploaded by

Mad lol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

2/25/19 6:51 PM MATLAB Command Window 1 of 1

>> h1= (5*(s+15)*(s+26)*(s+72))/(s*(s+55)*(s+5*s+30)*(s+56)*(s^2+27*s+52))

h1 =

5 s^3 + 565 s^2 + 16710 s + 140400


--------------------------------------------------------------------
6 s^6 + 858 s^5 + 40914 s^4 + 717462 s^3 + 3.629e06 s^2 + 4.805e06 s

Continuous-time transfer function.

>> G=zpk(numg,deng,K)
Undefined function or variable 'numg'.

>> numg=z
Undefined function or variable 'z'.

>> numg=[-15, -26, -72]

numg =

-15 -26 -72

>> deng = [0,-55,-2.5i,2.5i,-2.0873,-24.913]

deng =

Columns 1 through 3

0.0000 + 0.0000i -55.0000 + 0.0000i 0.0000 - 2.5000i

Columns 4 through 6

0.0000 + 2.5000i -2.0873 + 0.0000i -24.9130 + 0.0000i

>> K=5

K =

>> G=zpk(numg,deng,K)

G =

5 (s+15) (s+26) (s+72)


-----------------------------------------
s (s+55) (s+24.91) (s+2.087) (s^2 + 6.25)

Continuous-time zero/pole/gain model.

>>

You might also like