⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adptive_bitpow_allocate_systems_mex.c

📁 好东西
💻 C
📖 第 1 页 / 共 3 页
字号:
 * 0-0). The void interface is only produced if the M-function uses the special
 * variable "nargout", and has at least one output. The void interface function
 * specifies zero output arguments to the implementation version of the
 * function, and in the event that the implementation version still returns an
 * output (which, in MATLAB, would be assigned to the "ans" variable), it
 * deallocates the output. This function processes any input arguments and
 * passes them to the implementation version of the function, appearing above.
 */
void mlfVXlabel(mxArray * string, ...) {
    mxArray * varargin = NULL;
    mxArray * hh = NULL;
    mlfVarargin(&varargin, string, 0);
    mlfEnterNewContext(0, -2, string, varargin);
    hh = Mxlabel(0, string, varargin);
    mlfRestorePreviousContext(0, 1, string);
    mxDestroyArray(varargin);
}

/*
 * The function "mlxXlabel" contains the feval interface for the "xlabel"
 * M-function from file "c:\matlab6p5\toolbox\matlab\graph2d\xlabel.m" (lines
 * 0-0). The feval function calls the implementation version of xlabel through
 * this function. This function processes any input arguments and passes them
 * to the implementation version of the function, appearing above.
 */
void mlxXlabel(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[2];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: xlabel Line: 1 Column: "
            "1 The function \"xlabel\" was called with mor"
            "e than the declared number of outputs (1)."),
          NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 1 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 1; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 1, mprhs[0]);
    mprhs[1] = NULL;
    mlfAssign(&mprhs[1], mclCreateVararginCell(nrhs - 1, prhs + 1));
    mplhs[0] = Mxlabel(nlhs, mprhs[0], mprhs[1]);
    mlfRestorePreviousContext(0, 1, mprhs[0]);
    plhs[0] = mplhs[0];
    mxDestroyArray(mprhs[1]);
}

/*
 * The function "mlfMultipath_chann" contains the normal interface for the
 * "multipath_chann" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\multipath_chann.m" (lines 0-0).
 * This function processes any input arguments and passes them to the
 * implementation version of the function, appearing above.
 */
mxArray * mlfMultipath_chann(mxArray * * Hk,
                             mxArray * input_sig,
                             mxArray * num,
                             mxArray * var_pow,
                             mxArray * delay,
                             mxArray * fd,
                             mxArray * t_interval,
                             mxArray * counter,
                             mxArray * count_begin,
                             mxArray * cp_n) {
    int nargout = 1;
    mxArray * output_sig = NULL;
    mxArray * Hk__ = NULL;
    mlfEnterNewContext(
      1,
      9,
      Hk,
      input_sig,
      num,
      var_pow,
      delay,
      fd,
      t_interval,
      counter,
      count_begin,
      cp_n);
    if (Hk != NULL) {
        ++nargout;
    }
    output_sig
      = Mmultipath_chann(
          &Hk__,
          nargout,
          input_sig,
          num,
          var_pow,
          delay,
          fd,
          t_interval,
          counter,
          count_begin,
          cp_n);
    mlfRestorePreviousContext(
      1,
      9,
      Hk,
      input_sig,
      num,
      var_pow,
      delay,
      fd,
      t_interval,
      counter,
      count_begin,
      cp_n);
    if (Hk != NULL) {
        mclCopyOutputArg(Hk, Hk__);
    } else {
        mxDestroyArray(Hk__);
    }
    return mlfReturnValue(output_sig);
}

/*
 * The function "mlxMultipath_chann" contains the feval interface for the
 * "multipath_chann" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\multipath_chann.m" (lines 0-0).
 * The feval function calls the implementation version of multipath_chann
 * through this function. This function processes any input arguments and
 * passes them to the implementation version of the function, appearing above.
 */
void mlxMultipath_chann(int nlhs,
                        mxArray * plhs[],
                        int nrhs,
                        mxArray * prhs[]) {
    mxArray * mprhs[9];
    mxArray * mplhs[2];
    int i;
    if (nlhs > 2) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: multipath_chann Line: 1 Colum"
            "n: 1 The function \"multipath_chann\" was called wi"
            "th more than the declared number of outputs (2)."),
          NULL);
    }
    if (nrhs > 9) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: multipath_chann Line: 1 Colum"
            "n: 1 The function \"multipath_chann\" was called wi"
            "th more than the declared number of inputs (9)."),
          NULL);
    }
    for (i = 0; i < 2; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 9 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 9; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(
      0,
      9,
      mprhs[0],
      mprhs[1],
      mprhs[2],
      mprhs[3],
      mprhs[4],
      mprhs[5],
      mprhs[6],
      mprhs[7],
      mprhs[8]);
    mplhs[0]
      = Mmultipath_chann(
          &mplhs[1],
          nlhs,
          mprhs[0],
          mprhs[1],
          mprhs[2],
          mprhs[3],
          mprhs[4],
          mprhs[5],
          mprhs[6],
          mprhs[7],
          mprhs[8]);
    mlfRestorePreviousContext(
      0,
      9,
      mprhs[0],
      mprhs[1],
      mprhs[2],
      mprhs[3],
      mprhs[4],
      mprhs[5],
      mprhs[6],
      mprhs[7],
      mprhs[8]);
    plhs[0] = mplhs[0];
    for (i = 1; i < 2 && i < nlhs; ++i) {
        plhs[i] = mplhs[i];
    }
    for (; i < 2; ++i) {
        mxDestroyArray(mplhs[i]);
    }
}

/*
 * The function "mlfMap_module_adp" contains the normal interface for the
 * "map_module_adp" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\map_module_adp.m" (lines 0-0).
 * This function processes any input arguments and passes them to the
 * implementation version of the function, appearing above.
 */
mxArray * mlfMap_module_adp(mxArray * input, mxArray * map_flag) {
    int nargout = 1;
    mxArray * output = NULL;
    mlfEnterNewContext(0, 2, input, map_flag);
    output = Mmap_module_adp(nargout, input, map_flag);
    mlfRestorePreviousContext(0, 2, input, map_flag);
    return mlfReturnValue(output);
}

/*
 * The function "mlxMap_module_adp" contains the feval interface for the
 * "map_module_adp" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\map_module_adp.m" (lines 0-0).
 * The feval function calls the implementation version of map_module_adp
 * through this function. This function processes any input arguments and
 * passes them to the implementation version of the function, appearing above.
 */
void mlxMap_module_adp(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[2];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: map_module_adp Line: 1 Colum"
            "n: 1 The function \"map_module_adp\" was called wi"
            "th more than the declared number of outputs (1)."),
          NULL);
    }
    if (nrhs > 2) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: map_module_adp Line: 1 Colum"
            "n: 1 The function \"map_module_adp\" was called wi"
            "th more than the declared number of inputs (2)."),
          NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 2 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 2; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 2, mprhs[0], mprhs[1]);
    mplhs[0] = Mmap_module_adp(nlhs, mprhs[0], mprhs[1]);
    mlfRestorePreviousContext(0, 2, mprhs[0], mprhs[1]);
    plhs[0] = mplhs[0];
}

/*
 * The function "mlfMap_module" contains the normal interface for the
 * "map_module" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\map_module.m" (lines 0-0). This
 * function processes any input arguments and passes them to the implementation
 * version of the function, appearing above.
 */
mxArray * mlfMap_module(mxArray * input, mxArray * map_flag) {
    int nargout = 1;
    mxArray * output = NULL;
    mlfEnterNewContext(0, 2, input, map_flag);
    output = Mmap_module(nargout, input, map_flag);
    mlfRestorePreviousContext(0, 2, input, map_flag);
    return mlfReturnValue(output);
}

/*
 * The function "mlxMap_module" contains the feval interface for the
 * "map_module" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\map_module.m" (lines 0-0). The
 * feval function calls the implementation version of map_module through this
 * function. This function processes any input arguments and passes them to the
 * implementation version of the function, appearing above.
 */
void mlxMap_module(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[2];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: map_module Line: 1 Column:"
            " 1 The function \"map_module\" was called with m"
            "ore than the declared number of outputs (1)."),
          NULL);
    }
    if (nrhs > 2) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: map_module Line: 1 Column"
            ": 1 The function \"map_module\" was called with"
            " more than the declared number of inputs (2)."),
          NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 2 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 2; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 2, mprhs[0], mprhs[1]);
    mplhs[0] = Mmap_module(nlhs, mprhs[0], mprhs[1]);
    mlfRestorePreviousContext(0, 2, mprhs[0], mprhs[1]);
    plhs[0] = mplhs[0];
}

/*
 * The function "mlfLog10" contains the normal interface for the "log10"
 * M-function from file "c:\matlab6p5\toolbox\matlab\elfun\log10.m" (lines
 * 0-0). This function processes any input arguments and passes them to the
 * implementation version of the function, appearing above.
 */
mxArray * mlfLog10(mxArray * x) {
    int nargout = 1;
    mxArray * y = NULL;
    mlfEnterNewContext(0, 1, x);
    y = Mlog10(nargout, x);
    mlfRestorePreviousContext(0, 1, x);
    return mlfReturnValue(y);
}

/*
 * The function "mlxLog10" contains the feval interface for the "log10"
 * M-function from file "c:\matlab6p5\toolbox\matlab\elfun\log10.m" (lines
 * 0-0). The feval function calls the implementation version of log10 through
 * this function. This function processes any input arguments and passes them
 * to the implementation version of the function, appearing above.
 */
void mlxLog10(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[1];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: log10 Line: 1 Column: 1 The function \"log10"
            "\" was called with more than the declared number of outputs (1)."),
          NULL);
    }
    if (nrhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: log10 Line: 1 Column: 1 The function \"log10"
            "\" was called with more than the declared number of inputs (1)."),
          NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 1 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 1; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 1, mprhs[0]);
    mplhs[0] = Mlog10(nlhs, mprhs[0]);
    mlfRestorePreviousContext(0, 1, mprhs[0]);
    plhs[0] = mplhs[0];
}

/*
 * The function "mlfInsert_cp" contains the normal interface for the
 * "insert_cp" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\insert_cp.m" (lines 0-0). This
 * function processes any input arguments and passes them to the implementation
 * version of the function, appearing above.
 */
mxArray * mlfInsert_cp(mxArray * input, mxArray * cp_length) {
    int nargout = 1;
    mxArray * output = NULL;
    mlfEnterNewContext(0, 2, input, cp_length);
    output = Minsert_cp(nargout, input, cp_length);
    mlfRestorePreviousContext(0, 2, input, cp_length);
    return mlfReturnValue(output);
}

/*
 * The function "mlxInsert_cp" contains the feval interface for the "insert_cp"
 * M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\insert_cp.m" (lines 0-0). The
 * feval function calls the implementation version of insert_cp through this
 * function. This function processes any input arguments and passes them to the
 * implementation version of the function, appearing above.
 */
void mlxInsert_cp(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[2];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: insert_cp Line: 1 Column:"
            " 1 The function \"insert_cp\" was called with m"
            "ore than the declared number of outputs (1)."),
          NULL);
    }
    if (nrhs > 2) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: insert_cp Line: 1 Column:"
            " 1 The function \"insert_cp\" was called with m"
            "ore than the declared number of inputs (2)."),
          NULL);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -