// // Arguments : struct1_T *pStruct // Return Type : void // void emxInitStruct_struct1_T(struct1_T *pStruct) { emxInit_real_T(&pStruct->Position, 2); emxInit_char_T(&pStruct->MarkerSet, 2); emxInit_real_T(&pStruct->ContinuesFlag, 2); emxInit_real_T(&pStruct->ContinuesLastPosition, 2); emxInit_real_T(&pStruct->ContinuesLastTime, 2); emxInit_real_T(&pStruct->ContinuesLastK, 2); }
void emxInitStruct_struct0_T(const emlrtStack *sp, struct0_T *pStruct, const emlrtRTEInfo *srcLocation, boolean_T doPush) { emxInit_char_T(sp, &pStruct->wd, 2, srcLocation, doPush); emxInit_real_T(sp, &pStruct->famil_diff_thresh_start, 1, srcLocation, doPush); emxInit_char_T(sp, &pStruct->nameOfFolder, 2, srcLocation, doPush); emxInit_char_T(sp, &pStruct->expt, 2, srcLocation, doPush); b_emxInit_real_T(sp, &pStruct->gridMat, 3, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->famil_diff_thresh, 2, srcLocation, doPush); b_emxInit_real_T(sp, &pStruct->stimuli_misMatch, 3, srcLocation, doPush); b_emxInit_real_T(sp, &pStruct->stimuli_match, 3, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->tType, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->stimOrder, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->numGrids, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->nInpDims, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->usePRC, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->meanSelectivity_caudal_new, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->meanSelectivity_PRC_new, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->meanSelectivity_caudal_prev, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->meanSelectivity_PRC_prev, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->familDiff_caudal, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->familDiff_PRC, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->prevStimInit_act_peak, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->prevStimInit_act_total, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->prevStimFin_act_peak, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->prevStimFin_act_total, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->newStimInit_act_peak, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->newStimInit_act_total, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->newStimFin_act_peak, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->newStimFin_act_total, 2, srcLocation, doPush); b_emxInit_real_T(sp, &pStruct->featsSampedByComparison, 3, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->sample_feat, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->fixations, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->peak_act, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->totalAct, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->comparedFeat, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->familDiff_withNoise, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->famil_difference, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->answer, 2, srcLocation, doPush); c_emxInit_real_T(sp, &pStruct->correct, 2, srcLocation, doPush); }
/* Function Definitions */ emxArray_char_T *emxCreateND_char_T(int32_T numDimensions, int32_T *size) { emxArray_char_T *emx; int32_T numEl; int32_T loop_ub; int32_T i; emxInit_char_T(&emx, numDimensions); numEl = 1; loop_ub = numDimensions - 1; for (i = 0; i <= loop_ub; i++) { numEl *= size[i]; emx->size[i] = size[i]; } emx->data = (char_T *)calloc((uint32_T)numEl, sizeof(char_T)); emx->numDimensions = numDimensions; emx->allocatedSize = numEl; return emx; }
emxArray_char_T *emxCreate_char_T(int32_T rows, int32_T cols) { emxArray_char_T *emx; int32_T size[2]; int32_T numEl; int32_T i; size[0] = rows; size[1] = cols; emxInit_char_T(&emx, 2); numEl = 1; for (i = 0; i < 2; i++) { numEl *= size[i]; emx->size[i] = size[i]; } emx->data = (char_T *)calloc((uint32_T)numEl, sizeof(char_T)); emx->numDimensions = 2; emx->allocatedSize = numEl; return emx; }
emxArray_char_T *emxCreateWrapperND_char_T(char_T *data, int32_T numDimensions, int32_T *size) { emxArray_char_T *emx; int32_T numEl; int32_T loop_ub; int32_T i; emxInit_char_T(&emx, numDimensions); numEl = 1; loop_ub = numDimensions - 1; for (i = 0; i <= loop_ub; i++) { numEl *= size[i]; emx->size[i] = size[i]; } emx->data = data; emx->numDimensions = numDimensions; emx->allocatedSize = numEl; emx->canFreeData = FALSE; return emx; }
emxArray_char_T *emxCreateWrapper_char_T(char_T *data, int32_T rows, int32_T cols) { emxArray_char_T *emx; int32_T size[2]; int32_T numEl; int32_T i; size[0] = rows; size[1] = cols; emxInit_char_T(&emx, 2); numEl = 1; for (i = 0; i < 2; i++) { numEl *= size[i]; emx->size[i] = size[i]; } emx->data = data; emx->numDimensions = 2; emx->allocatedSize = numEl; emx->canFreeData = FALSE; return emx; }