摘要
研究了MATLAB与C混合编程方法。首先讨论了MATLAB与C#混合编程架构,分析了架构各关键部分的作用和调用关系,接下来研究了MATLAB与C#数据类型转换方法、MATLAB函数对应的.Net程序接口形式等混合编程的关键技术,最后通过实际项目设计了混合编程流程,编制了相关程序,验证了MATLAB和C#混合编程的可行性。实践表明,MATLAB和C#两种语言的集成,能够充分发挥各自的优势,拓展解决问题的空间,提高系统设计和开发效率。
Mixed programming of MATLAB and C# is studied. First, the mixed programming architecture of MATLAB and C# is discussed, and the role and calling relationship of each key part of the architecture are analyzed. Next, key techniques of mixed programming are studied such as MATLAB and C# data type conversion method and different.Net interface API forms generated by MATLAB functions. Finally, the mixed programming flow is designed and the feasibility of mixed programming of MATLAB and C# is verified. Practice shows that the integration of MATLAB and C# can give full use to their respective advantages, expand the space for solving problems, and improve system design and development efficiency.
作者
亓雪冬
李霞
Qi Xuedong;LI xia(Information Construction Department,China University of Petroleum(East China),Qingdao,Shandong 266580,China;College of Information and Control Engineering,China University of Petroleum(East China),Qingdao,Shandong 266580,China)
出处
《微型电脑应用》
2020年第4期85-87,共3页
Microcomputer Applications