Problem using a mex.c file

1 次查看(过去 30 天)
Thibault Audic
Thibault Audic 2020-6-4
Hey,
I am currently trying to use this package https://github.com/minepy/minepy in matlab, to do so I have unzipped the package and put both the mine.m and mine_mex.c file and put them in my current directory. However I keep getting the error message 'mine_mex.c function or variable not found' when I run a script which call mine.m as a function. From what I understand mine.m calls mine_mex.c but I am not sure why it does not find it?
If someone could try it and tell me what I am doing wrong? Thanks
Kindly
T

回答(1 个)

James Tursa
James Tursa 2020-6-4
编辑:James Tursa 2020-6-4
Looks like you need to compile the mex file. You will need to install a C compiler if you haven't already. If there is a build file then try that first. Otherwise, go to the directory with mine_mex.c and see if this works:
mex mine_mex.c

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by