📄 setplotcolor.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 "setplotcolor.h"
extern mxArray * randplotcolor;
void InitializeModule_setplotcolor(void) {
}
void TerminateModule_setplotcolor(void) {
}
static void Msetplotcolor(mxArray * color);
_mexLocalFunctionTable _local_function_table_setplotcolor
= { 0, (mexFunctionTableEntry *)NULL };
/*
* The function "mlfSetplotcolor" contains the normal interface for the
* "setplotcolor" M-function from file "c:\matlab6p5\work\setplotcolor.m"
* (lines 1-4). This function processes any input arguments and passes them to
* the implementation version of the function, appearing above.
*/
void mlfSetplotcolor(mxArray * color) {
mlfEnterNewContext(0, 1, color);
Msetplotcolor(color);
mlfRestorePreviousContext(0, 1, color);
}
/*
* The function "mlxSetplotcolor" contains the feval interface for the
* "setplotcolor" M-function from file "c:\matlab6p5\work\setplotcolor.m"
* (lines 1-4). The feval function calls the implementation version of
* setplotcolor through this function. This function processes any input
* arguments and passes them to the implementation version of the function,
* appearing above.
*/
void mlxSetplotcolor(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
mxArray * mprhs[1];
int i;
if (nlhs > 0) {
mlfError(
mxCreateString(
"Run-time Error: File: setplotcolor Line: 1 Column"
": 1 The function \"setplotcolor\" was called with"
" more than the declared number of outputs (0)."),
NULL);
}
if (nrhs > 1) {
mlfError(
mxCreateString(
"Run-time Error: File: setplotcolor Line: 1 Column"
": 1 The function \"setplotcolor\" was called with"
" more than the declared number of inputs (1)."),
NULL);
}
for (i = 0; i < 1 && i < nrhs; ++i) {
mprhs[i] = prhs[i];
}
for (; i < 1; ++i) {
mprhs[i] = NULL;
}
mlfEnterNewContext(0, 1, mprhs[0]);
Msetplotcolor(mprhs[0]);
mlfRestorePreviousContext(0, 1, mprhs[0]);
}
/*
* The function "Msetplotcolor" is the implementation version of the
* "setplotcolor" M-function from file "c:\matlab6p5\work\setplotcolor.m"
* (lines 1-4). 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 [ ]=setplotcolor(color)
*/
static void Msetplotcolor(mxArray * color) {
mclMlineEnterFunction("c:\\matlab6p5\\work\\setplotcolor.m", "setplotcolor")
mexLocalFunctionTable save_local_function_table_
= mclSetCurrentLocalFunctionTable(&_local_function_table_setplotcolor);
mxArray * ans = NULL;
mclCopyArray(&color);
/*
*
* global randplotcolor;
* randplotcolor=color;
*/
mclMline(3);
mlfAssign(mclPrepareGlobal(&randplotcolor), mclVa(color, "color"));
mxDestroyArray(ans);
mxDestroyArray(color);
mclSetCurrentLocalFunctionTable(save_local_function_table_);
mclMlineExitFunction();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -