全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

C程序调用MATLAB算法的方法与实现
Method and Realization of Calling MATLAB Algorithm by C Program

DOI: 10.12677/CSA.2021.1111269, PP. 2652-2661

Keywords: MATLAB,MATLAB Production Server,混合编程,C语言
MATLAB
, MATLAB Production Server, Mix Programming, C

Full-Text   Cite this paper   Add to My Lib

Abstract:

MATLAB是一款广泛应用于科学计算领域的数学计算软件,非常适合信号处理、算法研究、数据仿真等工作,但是因其代码必须运行在MATLAB环境下,而实际应用中常常需要脱离MATLAB环境,用其它软件来调用MATLAB代码,所以带来了混合编程的需要。本文针对实际项目需求,讨论了用C程序调用MATLAB代码的几种方法,经过实践,最终选择了MATLAB代码转C动态链接库作为本地调用方法,以及借助MATLAB Production Server及其C客户端作为远程调用方法,该结果已经被用于产品研发中,达到了预期的效果。
MATLAB is a mathematical calculation software widely used in the field of scientific computing, which is very suitable for signal processing, algorithm study, data simulation and other works. However, its code must run in MATLAB environment, but in practical application, it often needs to be divorced from MATLAB environment and use other software to call MATLAB code, which brings the need of mixed programming. According to the actual project requirements, this article discusses several methods of calling MATLAB code with C program. After practice, we finally choose MATLAB code to C dynamic link library as the local call method, and use MATLAB Production Server with its C client as the remote call method. The results have been used in product development and achieved the expected effect.

References

[1]  李中科, 赵慧娟, 苏晓萍. 基于OpenCV的C/C++和Matlab计算机视觉混合编程[J]. 计算机时代, 2018(7): 69-72.
[2]  亓雪冬, 李霞. MATLAB与C#混合编程方法研究[J]. 微型电脑应用, 2020, 36(4): 85-87.
[3]  胡其荣. 图形处理中C语言的综合应用策略[J]. 计算机产品与流通, 2020(11): 44.
[4]  王成杰, 汪晓斌, 廖定安. Matlab与VC++混合编程综述[J]. 电脑与信息技术, 2012, 20(5): 57-58+62.
[5]  周世钦, 王波涛. MATLAB程序转C代码的方法研究[J]. 价值工程, 2018, 37(2): 182-185.
[6]  陈正伟. 使用MATLAB引擎库函数实现.NET下调用MATLAB [J]. 中国新通信, 2008(13): 14-19.
[7]  廖灿灿, 张树群, 雷兆宜. Matlab Coder生成C代码的研究与应用[J]. 计算机与现代化, 2013(3): 175-178+183.
[8]  徐治. Visual C++调用MATLAB函数库的混合编程技术[J]. 软件, 2015, 36(2): 55-58.
[9]  潘大夫, 汪渤, 周志强. Matlab与C/C++混合编程技术研究[J]. 计算机工程与设计, 2009, 30(2): 465-468+521.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133