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

7 Ansichten (letzte 30 Tage)
Suganthan
Suganthan am 9 Apr. 2015
Kommentiert: James Tursa am 10 Apr. 2015
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

Antworten (1)

Philip Borghesani
Philip Borghesani am 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 Kommentar
James Tursa
James Tursa am 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.

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by