VC + + and MATLAB mixed programming (invoke the DLL generated by the. m file in the VC)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.