Calling C/C++ libraries (with associated cstring pointers) in MATLAB
Show older comments
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 Comments
Philip Borghesani
on 16 Mar 2016
Edited: Philip Borghesani
on 16 Mar 2016
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
on 17 Mar 2016
Edited: Philip Borghesani
on 17 Mar 2016
Is SPDB here a typo or did you not give the signature for sbdb? Does SBDB show up in the libfunctions output?
somayyah jurair
on 17 Mar 2016
Accepted Answer
More Answers (0)
Categories
Find more on Call C from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!