当前位置:网站首页>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 {
边栏推荐
- Streaming end, server end, player end
- Please supervise the 2022 plan
- OpenGL's distinction and understanding of VAO, VBO and EBO
- Three. JS introductory learning notes 18: how to export JSON files with Blender
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- A JS script can be directly put into the browser to perform operations
- Detailed explanation of Cocos creator 2.4.0 rendering process
- PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
- 招标公告:盘锦市人民医院盘锦医院数据库维保项目
- Dotween -- ease function
猜你喜欢
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
Streaming end, server end, player end
webgl_ Graphic transformation (rotation, translation, zoom)
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
What about the pointer in neural network C language
UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
Wireless sensor networks -- ZigBee and 6LoWPAN
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
Ue4/ue5 multi thread development attachment plug-in download address
随机推荐
There are many ways to realize the pause function in JS
保证接口数据安全的10种方案
神经网络c语言中的指针是怎么回事
Please supervise the 2022 plan
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
Learn good-looking custom scroll bars in 1 minute
47_Opencv中的轮廓查找 cv::findContours()
Align individual elements to the right under flex layout
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
有钱人买房就是不一样
Summary of knowledge points of xlua hot update solution
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
numpy---基础学习笔记
TS typescript type declaration special declaration field number is handled when the key key
用手机在通达信上开户靠谱吗?这样炒股有没有什么安全隐患
TCP framework___ Unity
VS2005 strange breakpoint is invalid or member variable value cannot be viewed
Shader Language
What about the pointer in neural network C language
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi