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

7 次查看(过去 30 天)
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

回答(1 个)

Philip Borghesani
Philip Borghesani 2015-4-10
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 个评论
James Tursa
James Tursa 2015-4-10
@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.

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by