/* * File: main.c * * MATLAB Coder version : 2.8 * C/C++ source code generated on : 03-Aug-2016 03:44:06 */ /*************************************************************************/ /* This automatically generated example C main file shows how to call */ /* entry-point functions that MATLAB Coder generated. You must customize */ /* this file for your application. Do not modify this file directly. */ /* Instead, make a copy of this file, modify it, and integrate it into */ /* your development environment. */ /* */ /* This file initializes entry-point function arguments to a default */ /* size and value before calling the entry-point functions. It does */ /* not store or use any values returned from the entry-point functions. */ /* If necessary, it does pre-allocate memory for returned values. */ /* You can use this file as a starting point for a main function that */ /* you can deploy in your application. */ /* */ /* After you copy the file, and before you deploy it, you must make the */ /* following changes: */ /* * For variable-size function arguments, change the example sizes to */ /* the sizes that your application requires. */ /* * Change the example values of function arguments to the values that */ /* your application requires. */ /* * If the entry-point functions return values, store these values or */ /* otherwise use them as required by your application. */ /* */ /*************************************************************************/ /* Include Files */ #include "rt_nonfinite.h" #include "imc.h" #include "main.h" /* Function Declarations */ static emxArray_real_T *argInit_Unboundedx1_real_T(void); static double argInit_real_T(void); static void main_imc(void); /* Function Definitions */ /* * Arguments : void * Return Type : emxArray_real_T * */ static emxArray_real_T *argInit_Unboundedx1_real_T(void) { emxArray_real_T *result; static int iv0[1] = { 2 }; int b_j0; /* Set the size of the array. Change this size to the value that the application requires. */ result = emxCreateND_real_T(1, iv0); /* Loop over the array to initialize each element. */ for (b_j0 = 0; b_j0 < result->size[0U]; b_j0++) { /* Set the value of the array element. Change this value to the value that the application requires. */ result->data[b_j0] = argInit_real_T(); } return result; } /* * Arguments : void * Return Type : double */ static double argInit_real_T(void) { return 0.0; } /* * Arguments : void * Return Type : void */ static void main_imc(void) { double lambdaCt; emxArray_real_T *kpn_x; emxArray_real_T *kpn_y; double imr; double b_imc; /* Initialize function 'imc' input arguments. */ lambdaCt = argInit_real_T(); /* Initialize function input argument 'kpn_x'. */ kpn_x = argInit_Unboundedx1_real_T(); /* Initialize function input argument 'kpn_y'. */ kpn_y = argInit_Unboundedx1_real_T(); /* Call the entry-point 'imc'. */ imc(lambdaCt, kpn_x, kpn_y, argInit_real_T(), argInit_real_T(), &b_imc, &imr); emxDestroyArray_real_T(kpn_y); emxDestroyArray_real_T(kpn_x); } /* * Arguments : int argc * const char * const argv[] * Return Type : int */ int main(int argc, const char * const argv[]) { (void)argc; (void)argv; /* Initialize the application. You do not need to do this more than one time. */ imc_initialize(); /* Invoke the entry-point functions. You can call entry-point functions multiple times. */ main_imc(); /* Terminate the application. You do not need to do this more than one time. */ imc_terminate(); return 0; } /* * File trailer for main.c * * [EOF] */