HOW CAN I LEARN MEX-FILES
显示 更早的评论
HOW CAN I LEARN MEX-FILES
2 个评论
Friedrich
2012-9-4
First learn C, than read the ML doc about the MEX interface, so the mx**** function defintitions.
回答(2 个)
[Edited 05-Sep-2012]
This document will guide you through step by step procedure to create a C-mex file, call the existing C function in it, build it and call it in matlab.
The structure of a basic c-mex file is
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
/* variable declarations */
/* Write your code Or Call existing function*/
}
类别
在 帮助中心 和 File Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!