This is the example of the mixed programming of VC + + and MATLAB in the actual project. Recently in the blind Tinker, also studied the next piece, Ben wanted to write a blog post, but this piece of information on the Internet is more, write more specific, think not to repeat the work, so I also do not write.
//Extract node informationMxarray*Csd_path; Mxarray*Save_path; Mxarray*Mat_path=Mxcreatecellmatrix (NULL,NULL);//mxcreatecellmatrix: Creating a two-dimensional unit matrixMxarray*Analog=Mxcreatecellmatrix (NULL,NULL); Mxarray*Digtal=Mxcreatecellmatrix (NULL,NULL); Csd_path=Mxcreatestring (Publicdata:: NORMAL_CSD);//mxcreatestring: Creates a string type and initializes it to NORMAL_CSDSave_path=Mxcreatestring (Publicdata:: Csdfiles); Mlfnormalwaveanalysis (3,&Mat_path,&Digtal,&Analog,csd_path,save_path);
There are a few more detailed explanations of the blog, as follows:
http://m.blog.csdn.net/blog/yuanjf1990/8741985: Quite detailed
Http://www.cnblogs.com/mfryf/archive/2012/02/16/2354295.html
Http://www.vckbase.com/index.php/wv/1266.html
MATLAB2012B and vs2010 Cross call when the compile environment settings article can be downloaded from here.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
VC + + and MATLAB mixed programming (invoke the DLL generated by the. m file in the VC)