Returns a vector of files ending with .mat
function getMatFiles extends Modelica.Icons.Function; input String specifier = "Data"; input String directoryName = Modelica.Utilities.Files.loadResource("modelica://Modelica_LinearSystems2/WorkInProgress/Tests/" + specifier) annotation( Dialog); input String fileNameSpec = ""; output String matFiles[:]; output Integer nrMat; end getMatFiles;