How call matlab mex files with python

16 views (last 30 days)
Unais T
Unais T on 7 Feb 2015
I have a Matlab created project which uses some c code (mex code). Now I am going to port this code into python.I don't have access to the code.
I found that c/c++ codes can call from python using cpython or some other module.
So is there any way i can use this c code with my python program. I am running my program in ubuntu.
The code started like this
#include "mex.h"
#include "math.h"
#define OK 0
#define ERROR -1
#define NARGIN 11
#define NARGOUT 2
int mxCalcPermRand(
/* inputs */
double * x_1Vec,
double * x_restVec,
double * ixVec,
This is the whole code:
https://www.dropbox.com/s/mu47vwry3n2kg0w/image_permutation.zip?dl=0

Answers (0)

Community Treasure Hunt

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

Start Hunting!