Is there anyway to check what functions are defined in a mex file?

6 views (last 30 days)
Hi,
I used dependency walker to open a mex file, but can't see the function list. Is there a tool or anyway to check the function list for a mex file? Thanks.
Li

Answers (1)

Philip Borghesani
Philip Borghesani on 10 Apr 2015
By definition A standard mex file only only has one function available to MATLAB named the same as the mex file and implemented in the function mexFunction.
It is possible to load a mex file as a standard shared library with loadlibrary and call any exported function in it but mex files that have been designed to do this are very rare if any exist at all. If that was the case then dependency walker would show the exported functions.
  1 Comment
James Tursa
James Tursa on 10 Apr 2015
@Suganthan: To expand on what Philip is telling you, mex routines that are built through the standard method (e.g., using mex at the command line) have only one exported function, namely "mexFunction". And that function has (mxArray *)[ ] types in the argument list. So there really isn't anything there for you to call using loadlibrary. It only makes sense to call it as a regular mex function.

Sign in to comment.

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!