当前位置:网站首页>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 {
边栏推荐
- Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
- Iterator and for of.. loop
- ./ Functions of configure, make and make install
- Particle effect for ugui
- OpenGL's distinction and understanding of VAO, VBO and EBO
- C4D learning notes 3- animation - animation rendering process case
- 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 04: external model import - no material obj model
- Notification uses full resolution
- Function: JS Click to copy content function
猜你喜欢
20th anniversary of agile: a failed uprising
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
[wechat applet] Chapter (5): basic API interface of wechat applet
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
A wave of open source notebooks is coming
Numpy --- basic learning notes
Mysql database basic operation DQL basic query
C4D learning notes 2- animation - timeline and time function
Cut ffmpeg as needed, and use emscripten to compile and run
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
随机推荐
numpy--数据清洗
Function: JS Click to copy content function
Summary of knowledge points of xlua hot update solution
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
asyncio 概念和用法
神经网络c语言中的指针是怎么回事
Limit of total fields [1000] in index has been exceeded
TCP framework___ Unity
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
Shader Language
VS2005 strange breakpoint is invalid or member variable value cannot be viewed
Whole process analysis of unity3d rendering pipeline
Numpy -- epidemic data analysis case
Please supervise the 2022 plan
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
Continuous creation depends on it!
121. The best time to buy and sell stocks
Three. JS introductory learning notes 04: external model import - no material obj model
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?