首页 | 官方网站   微博 | 高级检索  
     

在Visual C++中调用MATLAB以实现数学算法
引用本文:蒋忠进,林君,陈祖斌.在Visual C++中调用MATLAB以实现数学算法[J].计算机应用研究,2004,21(5):89-91.
作者姓名:蒋忠进  林君  陈祖斌
作者单位:吉林大学,电子科学与工程学院,仪器系,吉林,长春,130026
基金项目:国家自然科学基金(40204012)
摘    要:很多专业软件涉及到复杂的数学计算,同时也需要友好的用户界面。MATLAB具有很强的数值计算能力,而Visual C 则具有很强的普通软件尤其是图形用户界面的开发能力,两者的互补结合对快速、高效地开发专业计算软件具有很大的意义。讨论了在Visual C 中调用MATLAB文件的方法,它借助MATLAB的MCC命令和接口函数实现。通过该方法开发的软件可以独立于MATLAB而运行,并可以把MATLAB算法封装在动态链接库中,再在Visual C 中调用,提高了开发专业应用软件的速度及软件运行的效率和可靠性。

关 键 词:MATLAB  Visual  C++  MCC  接口函数  动态链接库
文章编号:1001-3695(2004)05-0089-03
修稿时间:2003年4月3日

Calling MATLAB Functions in Visual C + + to Implement the Mathematical Arithmetic
JIANG Zhong-jin,LIN Jun,CHEN Zu-bin.Calling MATLAB Functions in Visual C + + to Implement the Mathematical Arithmetic[J].Application Research of Computers,2004,21(5):89-91.
Authors:JIANG Zhong-jin  LIN Jun  CHEN Zu-bin
Abstract:Many kinds of professional software should be able to perform complicated calculation and have friendly graphical user interface. MATLAB has strong ability of numerical value calculation, whereas Visual C++ has powerful ability of developing ordinary software, especially the software with GUI, so the combination of MATLAB and Visual C++ is of great sense for a programmer to develop professional software rapidly and efficiently. Methods of calling MATLAB functions in Visual C++ are discussed in this paper, which are implemented through MCC command and interface functions of MATLAB. The software developed by these methods can run without MATLAB environment support. The MATLAB arithmetic can also be encapsulated in dynamic- linked libraries, then called in Visual C++, such the speed of developing professional software can be raised as well as the reliability and the efficiency of the software' operation.
Keywords:MATLAB  Visual C++  MCC  Interface Function  Dynamic- Linked Library(DLL)
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号