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

📄 mymagic.cpp

📁 氧化铝生产种分过程粒度预测
💻 CPP
字号:
//
// MATLAB Compiler: 3.0
// Date: Fri Feb 15 16:14:46 2008
// 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" "-silentsetup" "-d"
// "D:/precipitation model/20080204/xlmagic/src" "-B"
// "cppexcel:xlmagic,xlmagic,1.0" "-B" "cexcel:xlmagic,xlmagic,1.0" "-t" "-W"
// "excel:xlmagic,xlmagic,1.0" "-T" "link:lib" "-h" "libmmfile.mlib" "-b" "-i"
// "-L" "cpp" "-b" "-i" "D:/precipitation model/20080204/xlmagic/mymagic.m" 
//
#include "mymagic.hpp"
#include "libmatlbm.hpp"
#include "libmmfile.hpp"

void InitializeModule_mymagic() {
}

void TerminateModule_mymagic() {
}

static mwArray Mmymagic(int nargout_, mwArray x);

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

//
// The function "mymagic" contains the normal interface for the "mymagic"
// M-function from file "d:\precipitation model\20080204\xlmagic\mymagic.m"
// (lines 1-3). This function processes any input arguments and passes them to
// the implementation version of the function, appearing above.
//
mwArray mymagic(mwArray x) {
    int nargout = 1;
    mwArray y = mwArray::UNDEFINED;
    y = Mmymagic(nargout, x);
    return y;
}

//
// The function "mlxMymagic" contains the feval interface for the "mymagic"
// M-function from file "d:\precipitation model\20080204\xlmagic\mymagic.m"
// (lines 1-3). The feval function calls the implementation version of mymagic
// through this function. This function processes any input arguments and
// passes them to the implementation version of the function, appearing above.
//
void mlxMymagic(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        mwArray mprhs[1];
        mwArray mplhs[1];
        int i;
        mclCppUndefineArrays(1, mplhs);
        if (nlhs > 1) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: mymagic Line: 1 Column: "
                  "1 The function \"mymagic\" was called with mor"
                  "e than the declared number of outputs (1).")));
        }
        if (nrhs > 1) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: mymagic Line: 1 Column: "
                  "1 The function \"mymagic\" was called with mor"
                  "e than the declared number of inputs (1).")));
        }
        for (i = 0; i < 1 && i < nrhs; ++i) {
            mprhs[i] = mwArray(prhs[i], 0);
        }
        for (; i < 1; ++i) {
            mprhs[i].MakeDIN();
        }
        mplhs[0] = Mmymagic(nlhs, mprhs[0]);
        plhs[0] = mplhs[0].FreezeData();
    }
    MW_END_MLX();
}

//
// The function "Mmymagic" is the implementation version of the "mymagic"
// M-function from file "d:\precipitation model\20080204\xlmagic\mymagic.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 y=mymagic(x)
//
static mwArray Mmymagic(int nargout_, mwArray x) {
    mwLocalFunctionTable save_local_function_table_
      = &_local_function_table_mymagic;
    mwArray y = mwArray::UNDEFINED;
    //
    // y=magic(x)
    //
    y = magic(mwVa(x, "x"));
    mwVv(y, "y").Print("y");
    mwValidateOutput(y, 1, nargout_, "y", "mymagic");
    return y;
}

⌨️ 快捷键说明

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