Interface C++ program to MATLAB
이전 댓글 표시
Hi everyone, I am in a bit of a pain here.
I am currently working on a massive C++ program, which I need to interface with MATLAB. Sofar, my plan is to create a standalone .dll or .exe file from the C++-program, and let the program load all the paramteres (there is a bunch of paramteres) along with an jpeg-image directly from windows. But now my challenge is to have the .exe-file (or similar) return a bool to my script in MATLAB. How can I do this, and is there any easier approach to solving this?
I really hope that you guys can help me!
댓글 수: 1
Geoff Hayes
2014년 8월 21일
답변 (1개)
Adam
2014년 8월 21일
0 개 추천
You would need to have a mex wrapper calling your front end function from your C++ dll, then return a boolean from that mex function back to Matlab.
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!