当前位置:网站首页>Communication mode between application program and MATLAB
Communication mode between application program and MATLAB
2022-07-07 16:03:00 【notfindjob】
1、mex Programming
use mex Writing can be matlab Called application module , This module does not main function , Only provided by matlab Called code . This is a kind of matlab Mode of communication , To supplement matlab Some specific functions are insufficient , You need to install the complete matlab edition .
2、RPC call (Remote Process Call) perhaps LPC call (Local Process Call)--- Online call
Call dynamically in the application matlab The interface of , The work of calculation is entrusted to matlab complete , When finished, return the results to the application . This requires opening both the application and matlab.
1) use VS2017 Build a console program (32 still 64 Need and matlab Version match for )
2) stay VS2017 In the program , add to include Contents and lib The library catalog
find matlab Installation directory , find ”MATLAB\R2016a\extern“ Catalog , take include and lib The directory is added to the console program just created .
3) stay VS2017 Write code in the console program of , Compile and pass ( Note that the application is 64 A still 32 position )
#include <engine.h>
#pragma comment(lib,"libeng.lib")
int main()
{
Engine* pMatlab = engOpen(NULL);
if (pMatlab == NULL) {
printf("Open Matlab Engine error !");
exit(-1);
}
else {
边栏推荐
- Webgl texture
- Three. JS introductory learning notes 10:three JS grid
- torch.numel作用
- 招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
- Detailed explanation of unity hot update knowledge points and introduction to common solution principles
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
- 2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- Simple understanding and application of TS generics
猜你喜欢
Unity3D_ Class fishing project, bullet rebound effect is achieved
AB package details in unity (super detail, features, packaging, loading, manager)
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
You Yuxi, coming!
It's different for rich people to buy a house
Step by step monitoring platform ZABBIX
Three. JS introductory learning notes 19: how to import FBX static model
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
通知Notification使用全解析
分步式监控平台zabbix
随机推荐
Three. JS introductory learning notes 18: how to export JSON files with Blender
20th anniversary of agile: a failed uprising
Cocos creator collision and collision callback do not take effect
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
LeetCode2_ Add two numbers
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
Shader_ Animation sequence frame
持续创作,还得靠它!
MySQL数据库基本操作-DQL-基本查询
SPI master rx time out中断
Continuous creation depends on it!
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
Webgl texture
JS array foreach source code parsing
webgl_ Enter the three-dimensional world (2)
过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
Detailed explanation of unity hot update knowledge points and introduction to common solution principles
Learn good-looking custom scroll bars in 1 minute
企业级日志分析系统ELK
AE learning 01: AE complete project summary