Filter löschen
Filter löschen

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

13 Ansichten (letzte 30 Tage)
sowjanya boddeti
sowjanya boddeti am 26 Feb. 2016
Beantwortet: James Tursa am 26 Feb. 2016
compile cpp file from matlab. Is it : mex hello.cpp

Antworten (1)

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

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by