- Option A: create a MEX file via MATLAB Coder (using MATLAB Coder on a simple M file that just calls the C++ function using coder.cinclude and coder.ceval) - see the last comment on a similar question.
- Option B: create a MEX file via the MEX command (you will need to write a MEX wrapper for the C++ code). More information can be found on this documentation page.
C++ TO MATLAB
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello! I wanted to find out, how can I convert c++ code to MATLAB? Is it possible? And if so, what are the steps? Regards.
댓글 수: 0
답변 (1개)
Nitin Kapgate
2020년 10월 30일
If your goal is to convert C++ code to MATLAB code, manual conversion is required.
However, if you only need to call the C++ code from MATLAB, simpler solutions are possible:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!