If you have a C++ shared library that exports functionality that can be called from another application, then you can use these classes and functions directly in MATLAB. To get started, you must first build an interface to the C++ library to use to call the functionality in MATLAB. Someone who creates this interface is called a publisher. You can package the interface and share it with a MATLAB end user. For examples:
To call the C++ library functionality in MATLAB, see Use Prebuilt MATLAB Interface to C++ Library.