c shared library integration -凯发k8网页登录
matlab compiler sdk™ provides two ways to deploy matlab functions within c applications:
deploy to c applications using matlab data api
in this approach, you create an archive containing matlab functions and deploy it within a c application. use the matlab compiler sdk api for c as an interface between the c application and the archive containing the deployed matlab functions. use the matlab data api to handle data exchange between the c application and deployed matlab functions. this was in introduced in r2018a.
deploy to c applications using
mwarray
apiin this approach, you create a c shared library and header file from matlab functions you want to deploy. use the legacy matlab compiler sdk api for c as an interface between the c application and the deployed matlab functions. use the
mwarray
api to handle data exchange between the c application and the deployed matlab functions. this was introduced in r2013b.
matlab runtime must be installed and setup on the machine running the c application.
since matlab compiler sdk provides two c apis to interact with deployed matlab functions, the two apis are distinguished based on the apis used for exchanging data between the c application and the deployed matlab functions..
mathworks® recommends using the matlab compiler sdk api for c with the matlab data api.
categories
integrate packaged matlab functions into c applications using the matlab data api for data exchange
integrate packaged matlab functions into c applications using themwarray
api for data exchange