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

📄 ex0802.cpp

📁 matlab的一些接口程序!希望对学习matlab的同仁们有所帮助~
💻 CPP
字号:
//
// MATLAB Compiler: 2.2
// Date: Wed Oct 08 15:47:05 2003
// 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" "-p" "-W" "main" "-L"
// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "Ex0802.m" 
//
#include "Ex0802.hpp"
#include "libmatlbm.hpp"

static mxChar _array1_[130] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 'E', 'x', '0', '8', '0',
                                '2', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
                                ' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
                                '1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
                                'c', 't', 'i', 'o', 'n', ' ', '"', 'E', 'x',
                                '0', '8', '0', '2', '"', ' ', 'w', 'a', 's',
                                ' ', 'c', 'a', 'l', 'l', 'e', 'd', ' ', 'w',
                                'i', 't', 'h', ' ', 'm', 'o', 'r', 'e', ' ',
                                't', 'h', 'a', 'n', ' ', 't', 'h', 'e', ' ',
                                'd', 'e', 'c', 'l', 'a', 'r', 'e', 'd', ' ',
                                'n', 'u', 'm', 'b', 'e', 'r', ' ', 'o', 'f',
                                ' ', 'o', 'u', 't', 'p', 'u', 't', 's', ' ',
                                '(', '0', ')', '.' };
static mwArray _mxarray0_ = mclInitializeString(130, _array1_);

static mxChar _array3_[129] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 'E', 'x', '0', '8', '0',
                                '2', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
                                ' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
                                '1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
                                'c', 't', 'i', 'o', 'n', ' ', '"', 'E', 'x',
                                '0', '8', '0', '2', '"', ' ', 'w', 'a', 's',
                                ' ', 'c', 'a', 'l', 'l', 'e', 'd', ' ', 'w',
                                'i', 't', 'h', ' ', 'm', 'o', 'r', 'e', ' ',
                                't', 'h', 'a', 'n', ' ', 't', 'h', 'e', ' ',
                                'd', 'e', 'c', 'l', 'a', 'r', 'e', 'd', ' ',
                                'n', 'u', 'm', 'b', 'e', 'r', ' ', 'o', 'f',
                                ' ', 'i', 'n', 'p', 'u', 't', 's', ' ', '(',
                                '0', ')', '.' };
static mwArray _mxarray2_ = mclInitializeString(129, _array3_);

static mxChar _array5_[20] = { 'T', 'h', 'i', 's', ' ', 'i', 's',
                               ' ', 'a', ' ', 't', 'e', 's', 't',
                               ' ', 'f', 'i', 'l', 'e', '.' };
static mwArray _mxarray4_ = mclInitializeString(20, _array5_);

void InitializeModule_Ex0802() {
}

void TerminateModule_Ex0802() {
}

static void MEx0802();

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

//
// The function "Ex0802" contains the normal interface for the "Ex0802"
// M-function from file "C:\My
// Documents\CAOYi\BookMATLAB\20031008\exe\Ex0802\Ex0802_1\Ex0802.m" (lines
// 1-3). This function processes any input arguments and passes them to the
// implementation version of the function, appearing above.
//
void Ex0802() {
    MEx0802();
}

//
// The function "mlxEx0802" contains the feval interface for the "Ex0802"
// M-function from file "C:\My
// Documents\CAOYi\BookMATLAB\20031008\exe\Ex0802\Ex0802_1\Ex0802.m" (lines
// 1-3). The feval function calls the implementation version of Ex0802 through
// this function. This function processes any input arguments and passes them
// to the implementation version of the function, appearing above.
//
void mlxEx0802(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        if (nlhs > 0) {
            error(_mxarray0_);
        }
        if (nrhs > 0) {
            error(_mxarray2_);
        }
        MEx0802();
    }
    MW_END_MLX();
}

//
// The function "MEx0802" is the implementation version of the "Ex0802"
// M-function from file "C:\My
// Documents\CAOYi\BookMATLAB\20031008\exe\Ex0802\Ex0802_1\Ex0802.m" (lines
// 1-3). 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 Ex0802
//
static void MEx0802() {
    mwLocalFunctionTable save_local_function_table_
      (&_local_function_table_Ex0802);
    mwArray ans(mclGetUninitializedArray());
    //
    // % Ex0802 显示文字
    // disp('This is a test file.')
    //
    disp(_mxarray4_);
}

⌨️ 快捷键说明

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