C++ Source Code to MATLAB
이전 댓글 표시
Hey everyone,
Here's what I am trying to do. I have found some great source code online for a free simulation software written in C++. While the software is great, I'd like to integrate it into MATLAB. I understand that using MEX functionality in MATLAB you can use C++ source code in MATLAB. I'm not too familiar with this, so a tutorial or links to help me out would be great. I can provide a link to the source code if needed? But I'm really looking for a general implementation.
I read through some documentation but as one can expect the learning curve is significant.
댓글 수: 3
James Tursa
2017년 5월 3일
Is this simulation interactive, or will it run essentially as a batch job once given some inputs? What is the output of the simulation? Some variables or plots or files or ...?
Walter Roberson
2017년 5월 3일
If you can create static class methods with extern "C" to interface to the simulation functions, then you can probably call the routines by using loadlibrary()
Note: loadlibrary() does not work to call general C++ methods, only things that extern "C"
Hanif
2017년 5월 4일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!