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

Réponses (1)

James Tursa
James Tursa le 4 Juin 2020
Modifié(e) : James Tursa le 4 Juin 2020

0 votes

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

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by