HOW CAN I LEARN MEX-FILES

HOW CAN I LEARN MEX-FILES

2 commentaires

Friedrich
Friedrich le 4 Sep 2012
First learn C, than read the ML doc about the MEX interface, so the mx**** function defintitions.
TAB
TAB le 4 Sep 2012
Modifié(e) : TAB le 4 Sep 2012
In C or Fortron ?

Connectez-vous pour commenter.

Réponses (2)

TAB
TAB le 4 Sep 2012
Modifié(e) : TAB le 5 Sep 2012

1 vote

[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*/
}
AYMAN
AYMAN le 4 Sep 2012

0 votes

honestly i want to call c code and run into matlab so can you tell me about the steps of using mex-files

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Question posée :

le 4 Sep 2012

Community Treasure Hunt

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

Start Hunting!

Translated by