Target tracking MATLAB, c / c + + code implementation