Calling C/C++ libraries (with associated cstring pointers) in MATLAB
显示 更早的评论
Hey i want to call library sb of external software into MATLAB. I tried unsing following:
[Status, Errormsg]=calllib(‘sb’, ‘sbdb’, Dbloc, Dbname)
But calllib function could not be executed. MATLAB is giving error msg: “No matching method found”
Please tell me how can I call functions with cstring pointers in MATLAB
Thanks & Regards,
Somayyah
3 个评论
Philip Borghesani
2016-3-16
编辑:Philip Borghesani
2016-3-16
What is the output of
libfunctions sb -full
For the function sbdb? What does the library documentation say about the required inputs and outputs of the function sbdb?
There is no point in initializing left hand side variables that are not indexed in the assignment in any matlab code. Initialize a but not b in below code:
[a(1), b]=myfun;
Philip Borghesani
2016-3-17
编辑:Philip Borghesani
2016-3-17
Is SPDB here a typo or did you not give the signature for sbdb? Does SBDB show up in the libfunctions output?
somayyah jurair
2016-3-17
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Call C from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!