functionfromFile

Generate a TransferFunction data record by reading numenator coefficients and denominator coefficients from a file (default file name is tf.mat)

Information

Syntax

tf = TransferFunction.Import.fromFile(fileName, numName, denName)

Description

Reads and loads a transfer function from a mat-file fileName. The file must contain the names of the vector with the polynomial coefficients of numerator and denominator

Example



algorithm
  tf:=Modelica_LinearSystems2.TransferFunction.Import.fromFile("tf.mat", "n", "d");
//  tf = (s^2 + 2*s + 3)/(4*s^2 + 5*s + 6)

Inputs

TypeNameDefaultDescription
StringfileName"tf.mat"Name of the transfer function data file
StringnumName"n"Name of the numenator of the transfer function
StringdenName"d"Name of the denominator of the transfer function

Outputs

TypeNameDefaultDescription
TransferFunctiontftransfer function