base on matlab and vc with c++