How call matlab mex files with python
16 views (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB 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!