Problem using a mex.c file

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

Answers (1)

James Tursa
James Tursa on 4 Jun 2020
Edited: James Tursa on 4 Jun 2020
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

Asked:

on 4 Jun 2020

Edited:

on 4 Jun 2020

Community Treasure Hunt

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

Start Hunting!