Calling C/C++ libraries (with associated cstring pointers) in MATLAB
Afficher commentaires plus anciens
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 commentaires
Philip Borghesani
le 16 Mar 2016
Modifié(e) : Philip Borghesani
le 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
le 17 Mar 2016
Modifié(e) : Philip Borghesani
le 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
le 17 Mar 2016
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Call C from MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!