フィルターのクリア

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 Center および File ExchangeWrite 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