i have a matlab function which consists of a call to c++ code present in the same directory. whenever i execute the function i get an error message: undefined function or variable 'cimgnbmap'.

 채택된 답변

Jan
Jan 2017년 6월 23일

0 개 추천

You cannot call a c++ file directly. At first you have to write a so called Mex-wrapper: this is the function "mexFunction", which is called as entry point. Then compile the file using the mex command.

댓글 수: 1

Griffin Polglaze
Griffin Polglaze 2020년 3월 26일
after successfully compiling the c++ code in matlab, are you able to call it? If not, how are you supposed to access it in matlab?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Call C/C++ from MATLAB에 대해 자세히 알아보기

질문:

2017년 6월 23일

댓글:

2020년 3월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by