/* * Select_Ground_Motions_mex.c * * Code generation for function 'Select_Ground_Motions' * * C source code generated on: Wed Aug 26 14:59:35 2015 * */ /* Include files */ #include "mex.h" #include "Select_Ground_Motions_api.h" #include "Select_Ground_Motions_initialize.h" #include "Select_Ground_Motions_terminate.h" /* Function Declarations */ static void Select_Ground_Motions_mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]); MEXFUNCTION_LINKAGE mxArray *emlrtMexFcnProperties(void); /* Variable Definitions */ emlrtContext emlrtContextGlobal = { true, false, EMLRT_VERSION_INFO, NULL, "Select_Ground_Motions", NULL, false, {2045744189U,2170104910U,2743257031U,4284093946U}, NULL }; emlrtCTX emlrtRootTLSGlobal = NULL; /* Function Definitions */ static void Select_Ground_Motions_mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mxArray *outputs[17]; mxArray *inputs[25]; int n = 0; int nOutputs = (nlhs < 1 ? 1 : nlhs); int nInputs = nrhs; /* Module initialization. */ Select_Ground_Motions_initialize(&emlrtContextGlobal); /* Check for proper number of arguments. */ if (nrhs != 25) { emlrtErrMsgIdAndTxt(emlrtRootTLSGlobal, "EMLRT:runTime:WrongNumberOfInputs", 5, mxINT32_CLASS, 25, mxCHAR_CLASS, 21, "Select_Ground_Motions"); } else if (nlhs > 17) { emlrtErrMsgIdAndTxt(emlrtRootTLSGlobal, "EMLRT:runTime:TooManyOutputArguments", 3, mxCHAR_CLASS, 21, "Select_Ground_Motions"); } /* Temporary copy for mex inputs. */ for (n = 0; n < nInputs; ++n) { inputs[n] = (mxArray *)prhs[n]; } /* Call the function. */ Select_Ground_Motions_api((const mxArray**)inputs, (const mxArray**)outputs); /* Copy over outputs to the caller. */ for (n = 0; n < nOutputs; ++n) { plhs[n] = emlrtReturnArrayR2009a(outputs[n]); } /* Module finalization. */ Select_Ground_Motions_terminate(); } void Select_Ground_Motions_atexit_wrapper(void) { Select_Ground_Motions_atexit(); } void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { /* Initialize the memory manager. */ mexAtExit(Select_Ground_Motions_atexit_wrapper); /* Dispatch the entry-point. */ Select_Ground_Motions_mexFunction(nlhs, plhs, nrhs, prhs); } mxArray *emlrtMexFcnProperties(void) { const char *mexProperties[] = { "Version", "ResolvedFunctions", "EntryPoints"}; const char *epProperties[] = { "Name", "NumberOfInputs", "NumberOfOutputs", "ConstantInputs"}; mxArray *xResult = mxCreateStructMatrix(1,1,3,mexProperties); mxArray *xEntryPoints = mxCreateStructMatrix(1,1,4,epProperties); mxArray *xInputs = NULL; xInputs = mxCreateLogicalMatrix(1, 25); mxSetFieldByNumber(xEntryPoints, 0, 0, mxCreateString("Select_Ground_Motions")); mxSetFieldByNumber(xEntryPoints, 0, 1, mxCreateDoubleScalar(25)); mxSetFieldByNumber(xEntryPoints, 0, 2, mxCreateDoubleScalar(17)); mxSetFieldByNumber(xEntryPoints, 0, 3, xInputs); mxSetFieldByNumber(xResult, 0, 0, mxCreateString("8.1.0.604 (R2013a)")); mxSetFieldByNumber(xResult, 0, 1, (mxArray*)emlrtMexFcnResolvedFunctionsInfo()); mxSetFieldByNumber(xResult, 0, 2, xEntryPoints); return xResult; } /* End of code generation (Select_Ground_Motions_mex.c) */