encapsulated function fromFile import Modelica.Utilities.Streams; import Modelica_LinearSystems2.DiscreteTransferFunction; input String fileName = "dtf.mat" "Name of the transfer function data file" annotation( Dialog(loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "transfer function data file"))); input String numName = "n" "Name of the numenator of the transfer function"; input String denName = "d" "Name of the denominator of the transfer function"; output DiscreteTransferFunction dtf(n = fill(0, ns2), d = fill(0, ds2)) "Discrete transfer function"; end fromFile;