Through the mix program of Matlab and C/C ++ , the code of Matlab can be recognized by VC, which becomes independent executive of dynamic link library to drive Matlab. Then, Matlab language can be directly written in VC. This method increases both speed and safety of Matlab.