当前位置:网站首页>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 {
边栏推荐
- 喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
- Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
- 谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
- 星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
- Align individual elements to the right under flex layout
- When opening the system window under UE4 shipping, the problem of crash is attached with the plug-in download address
- Virtual memory, physical memory /ram what
- OpenGL's distinction and understanding of VAO, VBO and EBO
- Function: JS Click to copy content function
- Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
猜你喜欢
Numpy --- basic learning notes
Continuous creation depends on it!
A wave of open source notebooks is coming
L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
Unity3D_ Class fishing project, bullet rebound effect is achieved
Vite path alias @ configuration
webgl_ Enter the three-dimensional world (1)
After UE4 is packaged, mesh has no material problem
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
[wechat applet] Chapter (5): basic API interface of wechat applet
随机推荐
[excelexport], Excel to Lua, JSON, XML development tool
如何在shell中实现 backspace
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
Webgl texture
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
保证接口数据安全的10种方案
Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
Simple understanding and application of TS generics
Function: JS Click to copy content function
AE learning 02: timeline
webgl_ Enter the three-dimensional world (2)
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
Detailed explanation of Cocos creator 2.4.0 rendering process
Three. JS introductory learning notes 04: external model import - no material obj model
TS as a general cache method
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import