Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) // Get input (x) from MATLAB double *x = mxGetPr(prhs[0]); double out; // Compute y = sin(x) * exp(-x) out = sin(*x) * exp(-*x); // Assign output plhs[0] = mxCreateDoubleScalar(out);
Alternatively, "funcompk" might be a specific function from a particular tool, but I'm not sure. Since the user wrote "mex funcompk", perhaps they are trying to create a MEX file for a function named "funcompk". mex funcompk
#include "mex.h"