HOW CAN I LEARN MEX-FILES
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponses (2)
TAB
le 4 Sep 2012
Modifié(e) : TAB
le 5 Sep 2012
[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*/
}
0 commentaires
Voir également
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!