📄 mix_plot.cpp
字号:
//
// MATLAB Compiler: 3.0
// Date: Thu May 19 17:38:16 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" "-B" "sglcpp" "-p" "-W"
// "main" "-L" "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
// "libmwsglm.mlib" "mix_plot"
//
#include "mix_plot.hpp"
#include "libmatlbm.hpp"
void InitializeModule_mix_plot() {
}
void TerminateModule_mix_plot() {
}
static void Mmix_plot(mwArray x, mwArray y);
_mexLocalFunctionTable _local_function_table_mix_plot
= { 0, (mexFunctionTableEntry *)NULL };
//
// The function "mix_plot" contains the normal interface for the "mix_plot"
// M-function from file "d:\matlab6p5\work\mix_plot.m" (lines 1-2). This
// function processes any input arguments and passes them to the implementation
// version of the function, appearing above.
//
void mix_plot(mwArray x, mwArray y) {
Mmix_plot(x, y);
}
//
// The function "mlxMix_plot" contains the feval interface for the "mix_plot"
// M-function from file "d:\matlab6p5\work\mix_plot.m" (lines 1-2). The feval
// function calls the implementation version of mix_plot through this function.
// This function processes any input arguments and passes them to the
// implementation version of the function, appearing above.
//
void mlxMix_plot(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
MW_BEGIN_MLX();
{
mwArray mprhs[2];
int i;
if (nlhs > 0) {
error(
mwVarargin(
mwArray(
"Run-time Error: File: mix_plot Line: 1 Column: "
"1 The function \"mix_plot\" was called with mor"
"e than the declared number of outputs (0).")));
}
if (nrhs > 2) {
error(
mwVarargin(
mwArray(
"Run-time Error: File: mix_plot Line: 1 Column: "
"1 The function \"mix_plot\" was called with mor"
"e than the declared number of inputs (2).")));
}
for (i = 0; i < 2 && i < nrhs; ++i) {
mprhs[i] = mwArray(prhs[i], 0);
}
for (; i < 2; ++i) {
mprhs[i].MakeDIN();
}
Mmix_plot(mprhs[0], mprhs[1]);
}
MW_END_MLX();
}
//
// The function "Mmix_plot" is the implementation version of the "mix_plot"
// M-function from file "d:\matlab6p5\work\mix_plot.m" (lines 1-2). 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 mix_plot(x,y)
//
static void Mmix_plot(mwArray x, mwArray y) {
mwLocalFunctionTable save_local_function_table_
= &_local_function_table_mix_plot;
mwArray ans = mwArray::UNDEFINED;
//
// plot(x,y);
//
ans.EqAns(Nplot(0, mwVarargin(mwVa(x, "x"), mwVa(y, "y"))));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -