当前位置:网站首页>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 {
边栏推荐
- Summary of knowledge points of xlua hot update solution
- Webcodecs parameter settings -avc1.42e01e meaning
- Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
- It's different for rich people to buy a house
- 尤雨溪,来了!
- Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
- Spin animation of Cocos performance optimization
- Three singleton modes of unity (hungry man, lazy man, monobehavior)
- 一个普通人除了去工厂上班赚钱,还能干什么工作?
- LeetCode1_ Sum of two numbers
猜你喜欢

Vite path alias @ configuration

分步式監控平臺zabbix
![[wechat applet] Chapter (5): basic API interface of wechat applet](/img/63/e819113c7c93e273525bc850892972.png)
[wechat applet] Chapter (5): basic API interface of wechat applet

Mysql database basic operation DQL basic query

神经网络c语言中的指针是怎么回事

Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)

Three. JS introductory learning notes 10:three JS grid

numpy--数据清洗

It's different for rich people to buy a house

Three. JS introductory learning notes 15: threejs frame animation module
随机推荐
Ue4/ue5 multi thread development attachment plug-in download address
Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
asyncio 概念和用法
Regular expression string
Particle effect for ugui
Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
U3D_ Infinite Bessel curve
numpy--疫情数据分析案例
You Yuxi, coming!
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
Whole process analysis of unity3d rendering pipeline
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Numpy -- data cleaning
Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
Vite path alias @ configuration
How does geojson data merge the boundaries of regions?
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
Plate - forme de surveillance par étapes zabbix
一个普通人除了去工厂上班赚钱,还能干什么工作?