Borrar filtros
Borrar filtros

how to run a c++ file in matlab using mex?

11 visualizaciones (últimos 30 días)
sowjanya boddeti
sowjanya boddeti el 26 de Feb. de 2016
Respondida: James Tursa el 26 de Feb. de 2016
compile cpp file from matlab. Is it : mex hello.cpp

Respuestas (1)

James Tursa
James Tursa el 26 de Feb. de 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

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by