| 7 | mexFunction的框架如下: |
| 8 | void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
| 9 | { |
| 10 | ....可以撰寫C、Fortran程式 |
| 11 | } |
| 12 | |
| 13 | nlhs(Type = int): number of "left hand side" arguments (呼叫函式時,等號左邊的變數數目,即 plhs 之個數)[[br]] |
| 14 | |
| 15 | plhs(Type = array of pointers to mxArrays): actual output arguments (呼叫函式時,等號左邊之變數本體)[[br]] |
| 16 | |
| 17 | nrhs(Type = int): number of "right hand side" arguments (呼叫函式時,等號右邊的變數數目,即 prhs 之個數)[[br]] |
| 18 | |
| 19 | prhs(Type = const array of pointers to mxArrays): all of the pointers to the mxArrays of input data for instance (呼叫函式時,等號右邊之變數本體[[br]] |
| 20 | |