how to run a c++ file in matlab using mex?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
compile cpp file from matlab. Is it : mex hello.cpp
0 commentaires
Réponses (1)
James Tursa
le 26 Fév 2016
You need to have the gateway function mexFunction in your source code:
If you have that set up properly, and the file is in the current directory, then yes all you do is enter this at the command prompt:
mex hello.cpp
0 commentaires
Voir également
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) 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!