As written, the matlab reads in a .mat file that has 3 column vectors of equal length: time, input, and output. There are example .mat files included here. The code is based on the algorithm of Cirpka ...