📄 ploterr.c
字号:
/*
* MATLAB Compiler: 3.0
* Date: Sun May 13 16:47:41 2007
* 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"
* "d:/MATLAB6p5/work/nnToolKit/src" "-B" "csglcom:nnToolKit,nnToolKit,2.0"
* "-B" "sgl" "-m" "-W" "main" "-L" "C" "-t" "-T" "link:exe" "-h"
* "libmmfile.mlib" "-W" "mainhg" "libmwsglm.mlib" "-t" "-W"
* "comhg:nnToolKit,nnToolKit,2.0" "-T" "link:lib" "-h" "libmmfile.mlib" "-i"
* "-i" "D:/MATLAB6p5/work/nnToolKit/lmnet/LmSimu.m"
* "D:/MATLAB6p5/work/nnToolKit/lmnet/LmTrain.m"
* "D:/MATLAB6p5/work/nnToolKit/sofm/SofmSimu.m"
* "D:/MATLAB6p5/work/nnToolKit/sofm/SofmTrain.m"
*/
#include "ploterr.h"
#include "libmatlbm.h"
#include "libmmfile.h"
#include "nntobsf.h"
#include "title.h"
#include "xlabel.h"
#include "ylabel.h"
static mxChar _array1_[6] = { 'b', 'a', 'r', 'e', 'r', 'r' };
static mxArray * _mxarray0_;
static mxChar _array3_[26] = { 'U', 's', 'e', ' ', 'B', 'A', 'R', ' ', 't',
'o', ' ', 'm', 'a', 'k', 'e', ' ', 'b', 'a',
'r', ' ', 'p', 'l', 'o', 't', 's', '.' };
static mxArray * _mxarray2_;
static mxChar _array5_[20] = { 'N', 'o', 't', ' ', 'e', 'n', 'o',
'u', 'g', 'h', ' ', 'a', 'r', 'g',
'u', 'm', 'e', 'n', 't', 's' };
static mxArray * _mxarray4_;
static mxChar _array7_[39] = { 'S', 'u', 'm', '-', 'S', 'q', 'u', 'a', 'r', 'e',
'd', ' ', 'N', 'e', 't', 'w', 'o', 'r', 'k', ' ',
'E', 'r', 'r', 'o', 'r', ' ', 'f', 'o', 'r', ' ',
'%', 'g', ' ', 'E', 'p', 'o', 'c', 'h', 's' };
static mxArray * _mxarray6_;
static mxArray * _mxarray8_;
static mxArray * _mxarray9_;
static mxArray * _mxarray10_;
static mxChar _array12_[8] = { 'c', 'h', 'i', 'l', 'd', 'r', 'e', 'n' };
static mxArray * _mxarray11_;
static double _array14_[2] = { 0.0, 999999.0 };
static mxArray * _mxarray13_;
static mxChar _array16_[2] = { 'r', ':' };
static mxArray * _mxarray15_;
static mxArray * _mxarray17_;
static mxArray * _mxarray18_;
static mxChar _array20_[2] = { '.', 'b' };
static mxArray * _mxarray19_;
static mxChar _array22_[5] = { 'E', 'p', 'o', 'c', 'h' };
static mxArray * _mxarray21_;
static mxChar _array24_[17] = { 'S', 'u', 'm', '-', 'S', 'q', 'u', 'a', 'r',
'e', 'd', ' ', 'E', 'r', 'r', 'o', 'r' };
static mxArray * _mxarray23_;
static mxChar _array26_[3] = { 'b', 'o', 'x' };
static mxArray * _mxarray25_;
static mxChar _array28_[2] = { 'o', 'n' };
static mxArray * _mxarray27_;
static mxArray * _mxarray29_;
static mxChar _array31_[3] = { 'o', 'f', 'f' };
static mxArray * _mxarray30_;
static mxChar _array33_[4] = { 'x', 'l', 'i', 'm' };
static mxArray * _mxarray32_;
static mxChar _array35_[4] = { 'y', 'l', 'i', 'm' };
static mxArray * _mxarray34_;
static double _array37_[2] = { 0.0, 1.0 };
static mxArray * _mxarray36_;
static mxChar _array39_[8] = { 'y', 'l', 'i', 'm', 'm', 'o', 'd', 'e' };
static mxArray * _mxarray38_;
static mxChar _array41_[4] = { 'a', 'u', 't', 'o' };
static mxArray * _mxarray40_;
static mxChar _array43_[6] = { 'y', 's', 'c', 'a', 'l', 'e' };
static mxArray * _mxarray42_;
static mxChar _array45_[3] = { 'l', 'o', 'g' };
static mxArray * _mxarray44_;
void InitializeModule_ploterr(void) {
_mxarray0_ = mclInitializeString(6, _array1_);
_mxarray2_ = mclInitializeString(26, _array3_);
_mxarray4_ = mclInitializeString(20, _array5_);
_mxarray6_ = mclInitializeString(39, _array7_);
_mxarray8_ = mclInitializeDouble(2.0);
_mxarray9_ = mclInitializeDouble(1.0);
_mxarray10_ = mclInitializeDouble(3.0);
_mxarray11_ = mclInitializeString(8, _array12_);
_mxarray13_ = mclInitializeDoubleVector(1, 2, _array14_);
_mxarray15_ = mclInitializeString(2, _array16_);
_mxarray17_ = mclInitializeDouble(0.0);
_mxarray18_ = mclInitializeDouble(.9);
_mxarray19_ = mclInitializeString(2, _array20_);
_mxarray21_ = mclInitializeString(5, _array22_);
_mxarray23_ = mclInitializeString(17, _array24_);
_mxarray25_ = mclInitializeString(3, _array26_);
_mxarray27_ = mclInitializeString(2, _array28_);
_mxarray29_ = mclInitializeDouble(2.220446049250313e-16);
_mxarray30_ = mclInitializeString(3, _array31_);
_mxarray32_ = mclInitializeString(4, _array33_);
_mxarray34_ = mclInitializeString(4, _array35_);
_mxarray36_ = mclInitializeDoubleVector(1, 2, _array37_);
_mxarray38_ = mclInitializeString(8, _array39_);
_mxarray40_ = mclInitializeString(4, _array41_);
_mxarray42_ = mclInitializeString(6, _array43_);
_mxarray44_ = mclInitializeString(3, _array45_);
}
void TerminateModule_ploterr(void) {
mxDestroyArray(_mxarray44_);
mxDestroyArray(_mxarray42_);
mxDestroyArray(_mxarray40_);
mxDestroyArray(_mxarray38_);
mxDestroyArray(_mxarray36_);
mxDestroyArray(_mxarray34_);
mxDestroyArray(_mxarray32_);
mxDestroyArray(_mxarray30_);
mxDestroyArray(_mxarray29_);
mxDestroyArray(_mxarray27_);
mxDestroyArray(_mxarray25_);
mxDestroyArray(_mxarray23_);
mxDestroyArray(_mxarray21_);
mxDestroyArray(_mxarray19_);
mxDestroyArray(_mxarray18_);
mxDestroyArray(_mxarray17_);
mxDestroyArray(_mxarray15_);
mxDestroyArray(_mxarray13_);
mxDestroyArray(_mxarray11_);
mxDestroyArray(_mxarray10_);
mxDestroyArray(_mxarray9_);
mxDestroyArray(_mxarray8_);
mxDestroyArray(_mxarray6_);
mxDestroyArray(_mxarray4_);
mxDestroyArray(_mxarray2_);
mxDestroyArray(_mxarray0_);
}
static mxArray * Mploterr(int nargout_, mxArray * e, mxArray * g, mxArray * h);
_mexLocalFunctionTable _local_function_table_ploterr
= { 0, (mexFunctionTableEntry *)NULL };
/*
* The function "mlfNPloterr" contains the nargout interface for the "ploterr"
* M-function from file "d:\matlab6p5\toolbox\nnet\nnobsolete\ploterr.m" (lines
* 1-66). This interface is only produced if the M-function uses the special
* variable "nargout". The nargout interface allows the number of requested
* outputs to be specified via the nargout argument, as opposed to the normal
* interface which dynamically calculates the number of outputs based on the
* number of non-NULL inputs it receives. This function processes any input
* arguments and passes them to the implementation version of the function,
* appearing above.
*/
mxArray * mlfNPloterr(int nargout, mxArray * e, mxArray * g, mxArray * h) {
mxArray * h2 = NULL;
mlfEnterNewContext(0, 3, e, g, h);
h2 = Mploterr(nargout, e, g, h);
mlfRestorePreviousContext(0, 3, e, g, h);
return mlfReturnValue(h2);
}
/*
* The function "mlfPloterr" contains the normal interface for the "ploterr"
* M-function from file "d:\matlab6p5\toolbox\nnet\nnobsolete\ploterr.m" (lines
* 1-66). This function processes any input arguments and passes them to the
* implementation version of the function, appearing above.
*/
mxArray * mlfPloterr(mxArray * e, mxArray * g, mxArray * h) {
int nargout = 1;
mxArray * h2 = NULL;
mlfEnterNewContext(0, 3, e, g, h);
h2 = Mploterr(nargout, e, g, h);
mlfRestorePreviousContext(0, 3, e, g, h);
return mlfReturnValue(h2);
}
/*
* The function "mlfVPloterr" contains the void interface for the "ploterr"
* M-function from file "d:\matlab6p5\toolbox\nnet\nnobsolete\ploterr.m" (lines
* 1-66). The void interface is only produced if the M-function uses the
* special variable "nargout", and has at least one output. The void interface
* function specifies zero output arguments to the implementation version of
* the function, and in the event that the implementation version still returns
* an output (which, in MATLAB, would be assigned to the "ans" variable), it
* deallocates the output. This function processes any input arguments and
* passes them to the implementation version of the function, appearing above.
*/
void mlfVPloterr(mxArray * e, mxArray * g, mxArray * h) {
mxArray * h2 = NULL;
mlfEnterNewContext(0, 3, e, g, h);
h2 = Mploterr(0, e, g, h);
mlfRestorePreviousContext(0, 3, e, g, h);
mxDestroyArray(h2);
}
/*
* The function "mlxPloterr" contains the feval interface for the "ploterr"
* M-function from file "d:\matlab6p5\toolbox\nnet\nnobsolete\ploterr.m" (lines
* 1-66). The feval function calls the implementation version of ploterr
* through this function. This function processes any input arguments and
* passes them to the implementation version of the function, appearing above.
*/
void mlxPloterr(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
mxArray * mprhs[3];
mxArray * mplhs[1];
int i;
if (nlhs > 1) {
mlfError(
mxCreateString(
"Run-time Error: File: ploterr Line: 1 Column: "
"1 The function \"ploterr\" was called with mor"
"e than the declared number of outputs (1)."),
NULL);
}
if (nrhs > 3) {
mlfError(
mxCreateString(
"Run-time Error: File: ploterr Line: 1 Column:"
" 1 The function \"ploterr\" was called with m"
"ore than the declared number of inputs (3)."),
NULL);
}
for (i = 0; i < 1; ++i) {
mplhs[i] = NULL;
}
for (i = 0; i < 3 && i < nrhs; ++i) {
mprhs[i] = prhs[i];
}
for (; i < 3; ++i) {
mprhs[i] = NULL;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -