How call matlab mex files with python

4 ビュー (過去 30 日間)
Unais T
Unais T 2015 年 2 月 7 日
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 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by