From: Jan Simon on
Dear Andrea!

Steve got it!

void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
int *var, *left_child, *right_child;
double *cut;

if (nrhs != 6) {
printf("Error: wrong number of input arguments: %d.\n", nlhs);
printf("Syntax: node_ids = treevalc(var, cut, left_child, right_child, catsplit, attributes)\n");
}

var = (int*)mxGetPr(prhs[0]);
cut = mxGetPr(prhs[1]);
left_child = (int*)mxGetPr(prhs[2]);
right_child = (int*)mxGetPr(prhs[3]);
...

Good luck, Jan
First  |  Prev  | 
Pages: 1 2
Prev: xpc shared interrupts
Next: ODE15s, ODE23s