HOW CAN I LEARN MEX-FILES

11 visualizaciones (últimos 30 días)
AYMAN
AYMAN el 4 de Sept. de 2012
HOW CAN I LEARN MEX-FILES
  2 comentarios
Friedrich
Friedrich el 4 de Sept. de 2012
First learn C, than read the ML doc about the MEX interface, so the mx**** function defintitions.
TAB
TAB el 4 de Sept. de 2012
Editada: TAB el 4 de Sept. de 2012
In C or Fortron ?

Iniciar sesión para comentar.

Respuestas (2)

TAB
TAB el 4 de Sept. de 2012
Editada: TAB el 5 de Sept. de 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*/
}

AYMAN
AYMAN el 4 de Sept. de 2012
honestly i want to call c code and run into matlab so can you tell me about the steps of using mex-files
  1 comentario
TAB
TAB el 5 de Sept. de 2012
See edited part of my answer.

Iniciar sesión para comentar.

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by