摘要Matlab可以实现数值分析、信号处理、工程图像处理等许多领域的计算和显示图形功能。因此,成为各类工程师在数值分析方面时不可不用的工具。

  C语言与Matlab混合编程可以通过很多接口方法来实现。在VC编程中,可以引用不能脱离Matlab环境的引擎法,插入Matlab引擎函数。也可使用在Matlab中通过内部的c函数库进行连接C语言编程。也可以用脱离Matlab环境的形式,通过Matlab内部的mcc或者借助matcom等编译器,将Matlab函数语句文件转换为C语言可以识别的代码形式,或者dll文件格式插入到VC中。也可借助比较简单的通用的支持多种标准语句的com组件来调用Matlab的方式实现混合编程。本文通过编程对比,体验比较每种方法具体实际中的快捷实效性。64376

毕业论文关键字:Matlab, C语言, 混合编程

毕业设计说明书(论文)外文摘要

Title C Language And Matlab Mixed Programming Language And Its Implementation                                

Abstract MathWorks Matlab can achieve numerical analysis, signal processing, image processing and many other areas of engineering calculations and display graphics. Therefore, as more and more extensive range of applications to become engineers in various aspects of numerical analysis tools can not do .

C language and Matlab can be achieved through a number of interface methods . In VC programming, can not be porced from the Matlab environment with engine method, insert Matlab engine function . Can also be used in Matlab c library through an internal connection c programming language . can also be used from the Matlab environment in the form of Matlab internal mcc or with the aid matcom other compilers, file conversion of Matlab function statements can be identified for the c language code form , or dll file formats into the VC . It can draw relatively simple generic statement supports a variety of standard com component to call the realization of Matlab programming mix . Through this program , it’s compared to the specific conditions of each method quickly effective。

Keywords: Matlab, C language, Mixed programming

引言 1

1 绪论 1

1.1 Matlab的背景、现状和意义 1

1.2 混合编程的目的和意义 2

1.3 研究目的 2

2 根据Matlab引擎的编程 2

2.1 Matlab引擎法编程主要过程及函数简介 2

2.2 Matlab引擎编程应用 5

3  使用数学库和mcc混合编程 13

4  Matcom编译 18

4.1 Matcom的编译过程简介 18

4.2 Matcom的编译应用 18

5 COM组件 21

5.1 COM组件简介 21

5.2 COM组件的编辑方法应用 21

结  论 27

致  谢 29

参考文献 30

引言

我们知道,C语言和Matlab语言混合编程有多种方法。既有只能在Matlab环境中运行的Matlab引擎法,也有可以脱离Matlab环境独自运行的mcc编译法,还有借助com编译组件进行程序编程的方法。论文网

在Matlab引擎法中,Matlab通过接受VC语句中的命令和输入数据,作为服务器,对C语言中的数据进行专门处理。然后再把结果在返回给VC,形成数据的连接交换。在mcc和COM组件编译法中,是通过功能强大的Matlab软件里的函数库。在编译之前,要对Matlab和VC软件进行设置连接,然后在此基础上,在进行语句编程。通过引用Matlab中生成的符合VC语言的源代码,进行衔接。由此完成实现特定的程序功能。

上一篇:基于虚拟仿真体验式实践教学体系的构建
下一篇:基于C语言成绩查询菜单的设计

Matlab基于多旋翼飞行器的飞行控制系统设计

MATLAB基于流形学习与神经网络的预测建模

C语言学生宿舍管理系统设计

C语言在计算机中的应用探讨

C语言学生社团管理系统设计

MATLAB基于植物图像的智能识别系统研究

论信息技术茬外语教學中的應用【3270字】

淮安市高校足球运动损伤问卷调查表

发酵米粉优势菌株的发酵特性研究

2021年什么行业赚钱,适合...

大淘宝网的虚假交易研究

个案管理茬老年糖尿病患...

肢体语言在小学英语教学中的应用浅谈

浅谈农村大气环境保护的制度构建【1868字】

新疆农林高校學生昆虫生...

激光模拟训练器材国内外研究现状

日语论文中日酒文化对比研究