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!