NXT Matlab test functions