Prev: xpc shared interrupts
Next: ODE15s, ODE23s
From: Jan Simon on 16 Feb 2010 07:13 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 |