Group Abstract Group Abstract

Message Boards Message Boards

Get the transfer function or state space model from zeros and poles?

Posted 6 years ago

Hi All,

Can anybody please suggest how to obtain the state-space model or the transfer function model through the following zeros and poles respectively

num = {{-0.1*
    Kd (-0.1*Kp + Kd)}, { (-0.1*Ki + Kp - 3.3*Kd) }, {(Ki - 3.3*Kp + 
     3.6*Kd) }, {(-3.3*Ki + 3.6*Kp) 3.6*Ki}}
den = {{1 (5 - 0.1*Kd) }, {(22 - 0.1*Kp + Kd)}, { (46 - 0.1*Ki + Kp - 
     3.3*Kd)}, { (46 + Ki - 3.3*Kp + 
     3.6*Kd)}, { (17 - 3.3*Ki + 3.6*Kp) 3.6*Ki}}

plz help.

POSTED BY: Salman Zaffar

Salman,

I think you want ( I used a gain of 1, but you can change that):

tf = TransferFunctionModel[{{{Flatten[num]}}, {{den}}, {{1}}}, s]

and

StateSpaceModel[tf]

Regards,

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard