using SDK written in C
1 回表示 (過去 30 日間)
古いコメントを表示
I have SDK for a camera written in C. I need to use it in Matlab (the vendor has no direct toolbox to use in matlab). How do I do it?
0 件のコメント
回答 (1 件)
Walter Roberson
2021 年 3 月 7 日
Note that the procedure is different for C++; see https://www.mathworks.com/help/matlab/call-cpp-library-functions.html
2 件のコメント
Walter Roberson
2021 年 3 月 8 日
Unfortunately I do not have a compiler installed at the moment to test with on the desktop. But when I do the below with MATLAB Online, I do see a list of functions.
addpath(fullfile(matlabroot,'extern','examples','shrlib'))
if not(libisloaded('shrlibsample'))
loadlibrary('shrlibsample')
end
libfunctions('shrlibsample')
参考
カテゴリ
Help Center および File Exchange で C Shared Library Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!