This error occurs when the shared library has dependencies which MATLAB® cannot find.
On Windows® systems, to find library dependencies, use the
third-party product Dependency Walker. Dependency Walker is a free
utility that scans Windows modules and builds a hierarchical tree diagram
of all dependent modules. For each module found, it lists all the
functions exported by that module, and which of those functions are
called by other modules. Download the Dependency Walker utility from
information on using the Dependency Walker.