📄 ex0802.c
字号:
/*
* MATLAB Compiler: 2.2
* Date: Wed Oct 08 19:42:07 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" "-m" "-W" "main" "-L"
* "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "Ex0802.m"
*/
#include "Ex0802.h"
#include "libmatlbm.h"
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 mxArray * _mxarray0_;
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 mxArray * _mxarray2_;
static mxChar _array5_[20] = { 'T', 'h', 'i', 's', ' ', 'i', 's',
' ', 'a', ' ', 't', 'e', 's', 't',
' ', 'f', 'i', 'l', 'e', '.' };
static mxArray * _mxarray4_;
void InitializeModule_Ex0802(void) {
_mxarray0_ = mclInitializeString(130, _array1_);
_mxarray2_ = mclInitializeString(129, _array3_);
_mxarray4_ = mclInitializeString(20, _array5_);
}
void TerminateModule_Ex0802(void) {
mxDestroyArray(_mxarray4_);
mxDestroyArray(_mxarray2_);
mxDestroyArray(_mxarray0_);
}
static void MEx0802(void);
_mexLocalFunctionTable _local_function_table_Ex0802
= { 0, (mexFunctionTableEntry *)NULL };
/*
* The function "mlfEx0802" 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 mlfEx0802(void) {
mlfEnterNewContext(0, 0);
MEx0802();
mlfRestorePreviousContext(0, 0);
}
/*
* 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[]) {
if (nlhs > 0) {
mlfError(_mxarray0_);
}
if (nrhs > 0) {
mlfError(_mxarray2_);
}
mlfEnterNewContext(0, 0);
MEx0802();
mlfRestorePreviousContext(0, 0);
}
/*
* 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(void) {
mexLocalFunctionTable save_local_function_table_
= mclSetCurrentLocalFunctionTable(&_local_function_table_Ex0802);
mxArray * ans = mclGetUninitializedArray();
/*
* % Ex0802 显示文字
* disp('This is a test file.')
*/
mlfDisp(_mxarray4_);
mxDestroyArray(ans);
mclSetCurrentLocalFunctionTable(save_local_function_table_);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -