executing c++ code within matlab
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gargi Srivastava
le 23 Juin 2017
Commenté : Griffin Polglaze
le 26 Mar 2020
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'.
0 commentaires
Réponse acceptée
Jan
le 23 Juin 2017
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 commentaire
Griffin Polglaze
le 26 Mar 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?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Call C++ from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!