📄 getplotcolor.c
字号:
/*
* MATLAB Compiler: 3.0
* Date: Tue Nov 15 09:19:57 2005
* 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"
* "C:/MATLAB6p5/work/myrandplottest/src" "-v" "-B"
* "csglcom:myrandplottest,myrandplottest,1.0" "-B" "sgl" "-m" "-W" "main" "-L"
* "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
* "libmwsglm.mlib" "-t" "-W" "comhg:myrandplottest,myrandplottest,1.0" "-T"
* "link:lib" "-h" "libmmfile.mlib" "-i" "-g" "-G" "-A" "debugline:on" "-O"
* "none" "-O" "fold_scalar_mxarrays:off" "-O" "fold_non_scalar_mxarrays:off"
* "-O" "optimize_integer_for_loops:off" "-O" "array_indexing:off" "-O"
* "optimize_conditionals:off" "-O" "speculate:off" "-i"
* "C:/MATLAB6p5/work/getplotcolor.m" "C:/MATLAB6p5/work/myrandplot.m"
* "C:/MATLAB6p5/work/setplotcolor.m"
*/
#include "getplotcolor.h"
#include "libmatlbm.h"
extern mxArray * randplotcolor;
void InitializeModule_getplotcolor(void) {
}
void TerminateModule_getplotcolor(void) {
}
static mxArray * Mgetplotcolor(int nargout_);
_mexLocalFunctionTable _local_function_table_getplotcolor
= { 0, (mexFunctionTableEntry *)NULL };
/*
* The function "mlfGetplotcolor" contains the normal interface for the
* "getplotcolor" M-function from file "c:\matlab6p5\work\getplotcolor.m"
* (lines 1-5). This function processes any input arguments and passes them to
* the implementation version of the function, appearing above.
*/
mxArray * mlfGetplotcolor(void) {
int nargout = 1;
mxArray * out = NULL;
mlfEnterNewContext(0, 0);
out = Mgetplotcolor(nargout);
mlfRestorePreviousContext(0, 0);
return mlfReturnValue(out);
}
/*
* The function "mlxGetplotcolor" contains the feval interface for the
* "getplotcolor" M-function from file "c:\matlab6p5\work\getplotcolor.m"
* (lines 1-5). The feval function calls the implementation version of
* getplotcolor through this function. This function processes any input
* arguments and passes them to the implementation version of the function,
* appearing above.
*/
void mlxGetplotcolor(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
mxArray * mplhs[1];
int i;
if (nlhs > 1) {
mlfError(
mxCreateString(
"Run-time Error: File: getplotcolor Line: 1 Column"
": 1 The function \"getplotcolor\" was called with"
" more than the declared number of outputs (1)."),
NULL);
}
if (nrhs > 0) {
mlfError(
mxCreateString(
"Run-time Error: File: getplotcolor Line: 1 Column"
": 1 The function \"getplotcolor\" was called with"
" more than the declared number of inputs (0)."),
NULL);
}
for (i = 0; i < 1; ++i) {
mplhs[i] = NULL;
}
mlfEnterNewContext(0, 0);
mplhs[0] = Mgetplotcolor(nlhs);
mlfRestorePreviousContext(0, 0);
plhs[0] = mplhs[0];
}
/*
* The function "Mgetplotcolor" is the implementation version of the
* "getplotcolor" M-function from file "c:\matlab6p5\work\getplotcolor.m"
* (lines 1-5). 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 [out]=getplotcolor()
*/
static mxArray * Mgetplotcolor(int nargout_) {
mclMlineEnterFunction("c:\\matlab6p5\\work\\getplotcolor.m", "getplotcolor")
mexLocalFunctionTable save_local_function_table_
= mclSetCurrentLocalFunctionTable(&_local_function_table_getplotcolor);
mxArray * out = NULL;
mxArray * ans = NULL;
/*
*
* global randplotcolor;
* out=randplotcolor;
*/
mclMline(4);
mlfAssign(&out, mclVg(&randplotcolor, "randplotcolor"));
mclValidateOutput(out, 1, nargout_, "out", "getplotcolor");
mxDestroyArray(ans);
mclSetCurrentLocalFunctionTable(save_local_function_table_);
mclMlineFunctionReturn()
return out;
mclMlineExitFunctionReturn();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -