functionfrequencyResponseGain

Compute gain of a frequency response (system must be a SISO system)

Extends from Modelica.Icons.Function (Icon for functions).

Information

Syntax

frequencyResponseGain(A, B, C, D, Zeros, Poles)

Description

Compute the gain of a frequency response based on zeros and poles. The system must be a SISO system, i.e. size(D, 1) = size(D, 2) = 1.

Inputs

TypeNameDefaultDescription
Real[:,size(A, 1)]AA-matrix of linear state space system
Real[size(A, 1),:]BB-matrix of linear state space system
Real[:,size(A, 1)]CC-matrix of linear state space system
Real[size(C, 1),size(B, 2)]DD-matrix of linear state space system
Real[:,2]ZerosZeros of state space system as Real matrix (first column: real, second column imaginary values)
Real[:,2]PolesPoles of state space system as Real matrix (first column: real, second column imaginary values)

Outputs

TypeNameDefaultDescription
Realgainy(s) = gain*(s-z1)*(s-z2)*...*(s-zm)/((s-p1)*(s-p2)*...(s-pn))

Contents

NameDescription
getReOutsidePolesZerosprotectedGet p on the real axis so that there is a minimum distance to all poles and zeros