New MATLAB function to prepare NN inputs from a time-series