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

📄 adptive_bitpow_allocate_systems.c

📁 好东西
💻 C
📖 第 1 页 / 共 5 页
字号:
/*
 * MATLAB Compiler: 3.0
 * Date: Fri Mar 24 11:31:36 2006
 * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on"
 * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O"
 * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L"
 * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib"
 * "adptive_bitpow_allocate_systems" 
 */
#include "adptive_bitpow_allocate_systems.h"
#include "mwservices.h"
#include "add_noise.h"
#include "bitandpoweralloct2.h"
#include "cut_cp.h"
#include "de_map_module_adp.h"
#include "insert_cp.h"
#include "libmatlbm.h"
#include "libmmfile.h"
#include "map_module.h"
#include "map_module_adp.h"
#include "multipath_chann.h"
#include "xlabel.h"
#include "ylabel.h"

static mxChar _array1_[4] = { 'l', 'o', 'n', 'g' };
static mxArray * _mxarray0_;
static mxArray * _mxarray2_;
static mxArray * _mxarray3_;
static mxArray * _mxarray4_;
static mxArray * _mxarray5_;
static mxArray * _mxarray6_;
static mxArray * _mxarray7_;

static double _array9_[3] = { 4.0, 16.0, 32.0 };
static mxArray * _mxarray8_;
static mxArray * _mxarray10_;
static mxArray * _mxarray11_;
static mxArray * _mxarray12_;
static mxArray * _mxarray13_;

static double _array15_[6] = { 0.0, 1e-06, 2e-06, 3e-06, 4e-06, 6e-06 };
static mxArray * _mxarray14_;
static mxArray * _mxarray16_;
static mxArray * _mxarray17_;
static mxArray * _mxarray18_;
static mxArray * _mxarray19_;

static mxChar _array21_[17] = { 'b', 'i', 't', 'a', 'l', 'l', 'o', 'c', '_',
                                'd', 'a', 't', 'a', '.', 'm', 'a', 't' };
static mxArray * _mxarray20_;

static mxChar _array23_[3] = { 'r', '-', '*' };
static mxArray * _mxarray22_;

static mxChar _array25_[2] = { 'o', 'n' };
static mxArray * _mxarray24_;

static mxChar _array27_[3] = { 'g', '-', 'o' };
static mxArray * _mxarray26_;
static mxArray * _mxarray28_;

static mxChar _array30_[3] = { 'm', '-', '+' };
static mxArray * _mxarray29_;

static mxChar _array32_[3] = { 'o', 'f', 'f' };
static mxArray * _mxarray31_;

static mxChar _array34_[7] = { 'S', 'N', 'R', '(', 'd', 'B', ')' };
static mxArray * _mxarray33_;

static mxChar _array36_[14] = { 0xb7c2, 0xd5e6, 0xbde1, 0xb9fb, 0xa3ac, 0xcab5,
                                0xbcca, 'P', 'e', '=', '1', 'e', '-', '3' };
static mxArray * _mxarray35_;

void InitializeModule_adptive_bitpow_allocate_systems(void) {
    _mxarray0_ = mclInitializeString(4, _array1_);
    _mxarray2_ = mclInitializeDouble(16.0);
    _mxarray3_ = mclInitializeDouble(64.0);
    _mxarray4_ = mclInitializeDouble(1e+06);
    _mxarray5_ = mclInitializeDouble(1.0);
    _mxarray6_ = mclInitializeDouble(10.0);
    _mxarray7_ = mclInitializeDouble(.001);
    _mxarray8_ = mclInitializeDoubleVector(1, 3, _array9_);
    _mxarray10_ = mclInitializeDoubleVector(0, 0, (double *)NULL);
    _mxarray11_ = mclInitializeDouble(0.0);
    _mxarray12_ = mclInitializeDouble(120.0);
    _mxarray13_ = mclInitializeDouble(6.0);
    _mxarray14_ = mclInitializeDoubleVector(1, 6, _array15_);
    _mxarray16_ = mclInitializeDouble(1.5e-06);
    _mxarray17_ = mclInitializeDouble(50.0);
    _mxarray18_ = mclInitializeDouble(2.0);
    _mxarray19_ = mclInitializeDouble(.5);
    _mxarray20_ = mclInitializeString(17, _array21_);
    _mxarray22_ = mclInitializeString(3, _array23_);
    _mxarray24_ = mclInitializeString(2, _array25_);
    _mxarray26_ = mclInitializeString(3, _array27_);
    _mxarray28_ = mclInitializeDouble(3.0);
    _mxarray29_ = mclInitializeString(3, _array30_);
    _mxarray31_ = mclInitializeString(3, _array32_);
    _mxarray33_ = mclInitializeString(7, _array34_);
    _mxarray35_ = mclInitializeString(14, _array36_);
}

void TerminateModule_adptive_bitpow_allocate_systems(void) {
    mxDestroyArray(_mxarray35_);
    mxDestroyArray(_mxarray33_);
    mxDestroyArray(_mxarray31_);
    mxDestroyArray(_mxarray29_);
    mxDestroyArray(_mxarray28_);
    mxDestroyArray(_mxarray26_);
    mxDestroyArray(_mxarray24_);
    mxDestroyArray(_mxarray22_);
    mxDestroyArray(_mxarray20_);
    mxDestroyArray(_mxarray19_);
    mxDestroyArray(_mxarray18_);
    mxDestroyArray(_mxarray17_);
    mxDestroyArray(_mxarray16_);
    mxDestroyArray(_mxarray14_);
    mxDestroyArray(_mxarray13_);
    mxDestroyArray(_mxarray12_);
    mxDestroyArray(_mxarray11_);
    mxDestroyArray(_mxarray10_);
    mxDestroyArray(_mxarray8_);
    mxDestroyArray(_mxarray7_);
    mxDestroyArray(_mxarray6_);
    mxDestroyArray(_mxarray5_);
    mxDestroyArray(_mxarray4_);
    mxDestroyArray(_mxarray3_);
    mxDestroyArray(_mxarray2_);
    mxDestroyArray(_mxarray0_);
}

static void Madptive_bitpow_allocate_systems(mxArray * m);

_mexLocalFunctionTable _local_function_table_adptive_bitpow_allocate_systems
  = { 0, (mexFunctionTableEntry *)NULL };

/*
 * The function "mlfAdptive_bitpow_allocate_systems" contains the normal
 * interface for the "adptive_bitpow_allocate_systems" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\adptive_bitpow_allocate_systems.
 * m" (lines 1-291). This function processes any input arguments and passes
 * them to the implementation version of the function, appearing above.
 */
void mlfAdptive_bitpow_allocate_systems(mxArray * m) {
    mlfEnterNewContext(0, 1, m);
    Madptive_bitpow_allocate_systems(m);
    mlfRestorePreviousContext(0, 1, m);
}

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

/*
 * The function "Madptive_bitpow_allocate_systems" is the implementation
 * version of the "adptive_bitpow_allocate_systems" M-function from file
 * "c:\matlab6p5\work\adptive_ofdm\adptive_ofdm\adptive_bitpow_allocate_systems.
 * m" (lines 1-291). It contains the actual compiled code for that M-function.
 * It is a static function and must only be called from one of the interface
 * functions, appearing below.
 */
/*
 * 
 * function adptive_bitpow_allocate_systems(m)
 */
static void Madptive_bitpow_allocate_systems(mxArray * m) {
    mexLocalFunctionTable save_local_function_table_
      = mclSetCurrentLocalFunctionTable(
          &_local_function_table_adptive_bitpow_allocate_systems);
    mxArray * elapse_time = NULL;
    mxArray * fre_eff_persnr_reallocatpow = NULL;
    mxArray * fre_eff_persnr = NULL;
    mxArray * err_num = NULL;
    mxArray * mn = NULL;
    mxArray * receive_bit_sig = NULL;
    mxArray * receive_ofdm_symbol1 = NULL;
    mxArray * receive_ofdm_symbol = NULL;
    mxArray * ofdm_demodulation_out = NULL;
    mxArray * cutcp_ofdm_symbol = NULL;
    mxArray * passnoise_ofdm_symbol = NULL;
    mxArray * passchan_ofdm_symbol = NULL;
    mxArray * sgma = NULL;
    mxArray * ofdm_cp_out = NULL;
    mxArray * ofdm_modulation_out = NULL;
    mxArray * input = NULL;
    mxArray * w = NULL;
    mxArray * sourcebit = NULL;
    mxArray * map_flag = NULL;
    mxArray * v = NULL;
    mxArray * map_out = NULL;
    mxArray * bit_num_ofdmsig = NULL;

⌨️ 快捷键说明

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