HOW CAN I LEARN MEX-FILES

HOW CAN I LEARN MEX-FILES

2 件のコメント

Friedrich
Friedrich 2012 年 9 月 4 日
First learn C, than read the ML doc about the MEX interface, so the mx**** function defintitions.
TAB
TAB 2012 年 9 月 4 日
編集済み: TAB 2012 年 9 月 4 日
In C or Fortron ?

サインインしてコメントする。

回答 (2 件)

TAB
TAB 2012 年 9 月 4 日
編集済み: TAB 2012 年 9 月 5 日

1 投票

[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 2012 年 9 月 4 日

0 投票

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

1 件のコメント

TAB
TAB 2012 年 9 月 5 日
See edited part of my answer.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

質問済み:

2012 年 9 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by