N-dimentional trajectory analysis tools built with MATLAB