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'.

 Respuesta aceptada

Jan
Jan el 23 de Jun. de 2017

0 votos

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 comentario

Griffin Polglaze
Griffin Polglaze el 26 de Mzo. de 2020
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?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 23 de Jun. de 2017

Comentada:

el 26 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by