/* WFDB_setifreq.c */ #include "mex.h" #include "wfdb/wfdb.h" /* Define order of input variables */ #define FS_INPUT 0 void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { int err_code; if (nrhs == 1) setifreq(*mxGetPr(prhs[FS_INPUT])); else mexErrMsgTxt("One input argument required"); }