摘要
Matlab具有强大的数值计算和分析等能力,而C/C++是目前最为流行的高级程序设计语言,两者互补结合的混合编程在科学研究和工程实践中具有非常重要的意义。因此,从Matlab调用C/C++代码及C/C++调用m文件两方面,深入地研究了它们之间混合编程的原理和实现机制,并且给出了具体条件下的混合编程方法和步骤。实例表明,提出的Matlab与C/C++混合编程方法是简洁、有效的。
Matlab has strong ability ofnumerical value calculation and analysis, whereasC/C++isoneofthemostpopularprogramming languages. And the mixed programming of Matlab and C/C++ is significant in scientific research and engineering applications. Therefore, the mechanism of Matlab inducing C/C++ codes and C/C++ calling m file are proposed separately. The mixed programming methods and approaches in different conditions are also presented. At last, the validity of the mixed programming between Matlab and C/C++ is testified with some examples.
出处
《计算机工程与设计》
CSCD
北大核心
2009年第2期465-468,F0003,共5页
Computer Engineering and Design
基金
国家部委预研基金项目(51405030104BQ0171)