How can I run .mexw32 extension on matlab?

6 views (last 30 days)
prabhu
prabhu on 2 Aug 2014
Answered: Jan on 4 Aug 2014
I m new to the matlab of using mex files. I have got code from someone for my work.When I run the file using that function name, It works well. but I cant view that file.Can anyone please say what is the problem in it to open this mexw32 file?? when I execute Package mex It gives the following error.
mex
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
or (to build an Ada S-function):
MEX [-v] [-g] -ada <sfcn>.ads
Use the -help option for more information, or consult the MATLAB API Guide.
C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: No file names given.
??? Error using ==> mex at 213 Unable to complete successfully.

Answers (1)

Jan
Jan on 4 Aug 2014
The error message is clear: The mex command requires more arguments, e.g. the name of the source file, which should be compiled. As usual reading the documentation would explain this immediately:
doc mex
Mex files are compiled C/C++/etc. files and your observation is correct: You cannot open or read them, because they are compiled.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!