📄 shg.c
字号:
/*
* MATLAB Compiler: 2.2
* Date: Tue Jun 25 10:53:59 2002
* 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" "-B" "sgl" "-m" "-W"
* "main" "-L" "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
* "libmwsglm.mlib" "exm110633_1"
*/
#include "shg.h"
#include "libmatlbm.h"
#include "libmmfile.h"
static mxChar _array1_[124] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
'l', 'e', ':', ' ', 's', 'h', 'g', ' ', 'L',
'i', 'n', 'e', ':', ' ', '1', ' ', 'C', 'o',
'l', 'u', 'm', 'n', ':', ' ', '1', ' ', 'T',
'h', 'e', ' ', 'f', 'u', 'n', 'c', 't', 'i',
'o', 'n', ' ', '"', 's', 'h', 'g', '"', ' ',
'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_[123] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
'l', 'e', ':', ' ', 's', 'h', 'g', ' ', 'L',
'i', 'n', 'e', ':', ' ', '1', ' ', 'C', 'o',
'l', 'u', 'm', 'n', ':', ' ', '1', ' ', 'T',
'h', 'e', ' ', 'f', 'u', 'n', 'c', 't', 'i',
'o', 'n', ' ', '"', 's', 'h', 'g', '"', ' ',
'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_;
void InitializeModule_shg(void) {
_mxarray0_ = mclInitializeString(124, _array1_);
_mxarray2_ = mclInitializeString(123, _array3_);
}
void TerminateModule_shg(void) {
mxDestroyArray(_mxarray2_);
mxDestroyArray(_mxarray0_);
}
static void Mshg(void);
_mexLocalFunctionTable _local_function_table_shg
= { 0, (mexFunctionTableEntry *)NULL };
/*
* The function "mlfShg" contains the normal interface for the "shg" M-function
* from file "d:\MATLAB6p1\toolbox\matlab\graphics\shg.m" (lines 1-9). This
* function processes any input arguments and passes them to the implementation
* version of the function, appearing above.
*/
void mlfShg(void) {
mlfEnterNewContext(0, 0);
Mshg();
mlfRestorePreviousContext(0, 0);
}
/*
* The function "mlxShg" contains the feval interface for the "shg" M-function
* from file "d:\MATLAB6p1\toolbox\matlab\graphics\shg.m" (lines 1-9). The
* feval function calls the implementation version of shg through this
* function. This function processes any input arguments and passes them to the
* implementation version of the function, appearing above.
*/
void mlxShg(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
if (nlhs > 0) {
mlfError(_mxarray0_);
}
if (nrhs > 0) {
mlfError(_mxarray2_);
}
mlfEnterNewContext(0, 0);
Mshg();
mlfRestorePreviousContext(0, 0);
}
/*
* The function "Mshg" is the implementation version of the "shg" M-function
* from file "d:\MATLAB6p1\toolbox\matlab\graphics\shg.m" (lines 1-9). 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 shg()
*/
static void Mshg(void) {
mexLocalFunctionTable save_local_function_table_
= mclSetCurrentLocalFunctionTable(&_local_function_table_shg);
mxArray * ans = mclGetUninitializedArray();
/*
* %SHG Show graph window.
* % SHG brings the current figure window forward.
*
* % Copyright 1984-2001 The MathWorks, Inc.
* % $Revision: 5.7 $ $Date: 2001/04/15 11:59:54 $
*
* figure(gcf);
*/
mclAssignAns(&ans, mlfNFigure(0, mclVe(mlfGcf()), NULL));
mxDestroyArray(ans);
mclSetCurrentLocalFunctionTable(save_local_function_table_);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -