当前位置:网站首页>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 {
边栏推荐
- AE learning 01: AE complete project summary
- Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
- UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
- AE learning 02: timeline
- Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
- Use moviepy Editor clips videos and intercepts video clips in batches
- Three. JS introduction learning notes 12: the model moves along any trajectory line
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- 星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
- TCP framework___ Unity
猜你喜欢
Asynchronous application of generator function
Mysql database basic operation DQL basic query
LeetCode1_ Sum of two numbers
企业级日志分析系统ELK
How does geojson data merge the boundaries of regions?
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
webgl_ Enter the three-dimensional world (2)
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
AE learning 02: timeline
What about the pointer in neural network C language
随机推荐
Align individual elements to the right under flex layout
AE learning 01: AE complete project summary
过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
应用程序和matlab的通信方式
The unity vector rotates at a point
SPI master RX time out interrupt
nodejs package. JSON version number ^ and~
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
Virtual memory, physical memory /ram what
Cut ffmpeg as needed, and use emscripten to compile and run
Three. JS introductory learning notes 05: external model import -c4d into JSON file for web pages
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
numpy---基础学习笔记
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
A wave of open source notebooks is coming
Three. JS introductory learning notes 11:three JS group composite object
121. The best time to buy and sell stocks
Three. JS introductory learning notes 03: perspective projection camera
webgl_ Graphic transformation (rotation, translation, zoom)
Ue4/ue5 multi thread development attachment plug-in download address