Train Simulator for FE in Matlab