executing c++ code within matlab

4 ビュー (過去 30 日間)
Gargi Srivastava
Gargi Srivastava 2017 年 6 月 23 日
コメント済み: Griffin Polglaze 2020 年 3 月 26 日
i have a matlab function which consists of a call to c++ code present in the same directory. whenever i execute the function i get an error message: undefined function or variable 'cimgnbmap'.

採用された回答

Jan
Jan 2017 年 6 月 23 日
You cannot call a c++ file directly. At first you have to write a so called Mex-wrapper: this is the function "mexFunction", which is called as entry point. Then compile the file using the mex command.
  1 件のコメント
Griffin Polglaze
Griffin Polglaze 2020 年 3 月 26 日
after successfully compiling the c++ code in matlab, are you able to call it? If not, how are you supposed to access it in matlab?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by