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)