How call matlab mex files with python
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!