matlab & c++ update

sync the current matlab code. Fix the namedWindow issues after
compiling with Qt