MATLAB and C + + mixed programming

Source: Internet
Author: User

In the running of other people's thesis code, often encounter MATLAB and C + + mixed programming shadow.

Here's an introduction to mixed-programming posts.

Original post address: http://blog.csdn.net/zouxy09/article/details/20553007

===============================================

matlab and C + + mixed programming (dependent OPENCV)

Zouxy09@qq.com

Http://blog.csdn.net/zouxy09

Before running the code of someone else's paper, often have encountered Matlab and C + + mixed programming shadow. In fact, through the MATLAB Mex tool to compile C + + code into the MATLAB support invoke the executable file and function interface. This can be used in MATLAB to use the function has been written, although this function is written in C + +. Realize the Exchange without Borders, no Jiangshan unified who, only Shihai heroism. On the other hand, take the director of C + + to supplement their own short. MATLAB is good at matrix operation, but the efficiency of circular operation is less efficient than C + +, such as the creation of Hilbert matrix. So for the operation with a large cycle, you can use C + + power to complete.

See its charm, has always wanted to learn, but unfortunately the opportunity is not right. But the fate of yesterday is here. I need to use a paper to give the code, but its code is C + +, and also relies on the OpenCV library, based on the Linux platform. This and the laboratory for me to set out the platform is very different, we are to be unified based on Windows + MATLAB to achieve, so that the work of all the students in the group to unify. So there is no way, we have to compile the original author's code into a MATLAB-supported executable file.

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.