Calling Matlab Built-in Functions from Visual Studio
古いコメントを表示
Hello,
I'm trying to call Matlab built-in functions (conv, trapz) from a C++ application. I have Matlab R2008b and am using Visual Studio 2008.
I've modified my C++ project to include the Matlab header files and libraries. What do i do next?
For example, here's a piece of code where I'd call trapz next:
vector<float> fn; // do something to fill fn with floats // call matlab trapz(fn) here
採用された回答
その他の回答 (2 件)
Omar Ahmad
2011 年 9 月 22 日
0 投票
1 件のコメント
Kaustubha Govind
2011 年 9 月 23 日
I think the DLL should exist in $matlabroot/bin/$arch, where $matlabroot is the MATLAB installation directory and $arch is either win32 or win64. Add this path to the system PATH variable.
Omar Ahmad
2011 年 9 月 24 日
0 投票
3 件のコメント
Kaustubha Govind
2011 年 9 月 27 日
I think the number appended to icuuc increases with every version of MATLAB. Did you compile against an older version of MATLAB by any chance?
Omar Ahmad
2011 年 9 月 29 日
kanwal preet
2016 年 10 月 4 日
Hello Sir, could you provide the demo of your program, i want the same, call Matlab functions into VS C++ program.
カテゴリ
ヘルプ センター および File Exchange で Deploy to C++ Applications Using mwArray API (C++03) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!