How call matlab mex files with python

4 visualizaciones (últimos 30 días)
Unais T
Unais T el 7 de Feb. de 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

Respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by