필터 지우기
필터 지우기

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

조회 수: 11 (최근 30일)
sowjanya boddeti
sowjanya boddeti 2016년 2월 26일
답변: James Tursa 2016년 2월 26일
compile cpp file from matlab. Is it : mex hello.cpp

답변 (1개)

James Tursa
James Tursa 2016년 2월 26일
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

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by