当前位置:网站首页>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 {
边栏推荐
- ./ Functions of configure, make and make install
- SPI master rx time out中断
- hellogolang
- 分步式监控平台zabbix
- Detailed explanation of unity hot update knowledge points and introduction to common solution principles
- Regular expression string
- Shader Language
- JS array foreach source code parsing
- Three. JS introductory learning notes 11:three JS group composite object
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
猜你喜欢
Cut ffmpeg as needed, and use emscripten to compile and run
Streaming end, server end, player end
Wireless sensor networks -- ZigBee and 6LoWPAN
Step by step monitoring platform ZABBIX
企业级日志分析系统ELK
分步式监控平台zabbix
航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
神经网络c语言中的指针是怎么回事
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
You Yuxi, coming!
随机推荐
Mesh merging under ue4/ue5 runtime
分步式监控平台zabbix
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
Step by step monitoring platform ZABBIX
[excelexport], Excel to Lua, JSON, XML development tool
C4D learning notes 3- animation - animation rendering process case
有钱人买房就是不一样
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
Three. JS introductory learning notes 03: perspective projection camera
Detailed explanation of Cocos creator 2.4.0 rendering process
强化实时数据管理,英方软件助力医保平台安全建设
AB package details in unity (super detail, features, packaging, loading, manager)
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!
numpy--疫情数据分析案例
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
Function: JS Click to copy content function
121. The best time to buy and sell stocks
Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)
Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?