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
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | "tf.mat" | Name of the transfer function data file |
| String | numName | "n" | Name of the numenator of the transfer function |
| String | denName | "d" | Name of the denominator of the transfer function |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| TransferFunction | tf | transfer function |