亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sphere.cpp

?? 這本書是matlab經(jīng)典書籍
?? CPP
字號(hào):
//
// MATLAB Compiler: 2.2
// Date: Tue Jun 25 10:54:12 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" "sglcpp" "-p" "-W"
// "main" "-L" "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
// "libmwsglm.mlib" "exm110633_1" 
//
#include "sphere.hpp"
#include "libmatlbm.hpp"
#include "surf.hpp"

static mxChar _array1_[130] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 's', 'p', 'h', 'e', 'r',
                                'e', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
                                ' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
                                '1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
                                'c', 't', 'i', 'o', 'n', ' ', '"', 's', 'p',
                                'h', 'e', 'r', 'e', '"', ' ', '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', ' ',
                                '(', '3', ')', '.' };
static mwArray _mxarray0_ = mclInitializeString(130, _array1_);

static mxChar _array3_[129] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 's', 'p', 'h', 'e', 'r',
                                'e', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
                                ' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
                                '1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
                                'c', 't', 'i', 'o', 'n', ' ', '"', 's', 'p',
                                'h', 'e', 'r', 'e', '"', ' ', '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', ' ', '(',
                                '1', ')', '.' };
static mwArray _mxarray2_ = mclInitializeString(129, _array3_);
static mwArray _mxarray4_ = mclInitializeDouble(20.0);
static mwArray _mxarray5_ = mclInitializeDouble(2.0);
static mwArray _mxarray6_ = mclInitializeDouble(3.141592653589793);
static mwArray _mxarray7_ = mclInitializeDouble(0.0);
static mwArray _mxarray8_ = mclInitializeDouble(1.0);

void InitializeModule_sphere() {
}

void TerminateModule_sphere() {
}

static mwArray Msphere(mwArray * yy, mwArray * zz, int nargout_, mwArray n);

_mexLocalFunctionTable _local_function_table_sphere
  = { 0, (mexFunctionTableEntry *)NULL };

//
// The function "Nsphere" contains the nargout interface for the "sphere"
// M-function from file "d:\MATLAB6p1\toolbox\matlab\specgraph\sphere.m" (lines
// 1-35). 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.
//
mwArray Nsphere(int nargout, mwArray * yy, mwArray * zz, mwArray n) {
    mwArray xx(mclGetUninitializedArray());
    mwArray yy__(mclGetUninitializedArray());
    mwArray zz__(mclGetUninitializedArray());
    xx = Msphere(&yy__, &zz__, nargout, n);
    if (yy != NULL) {
        *yy = yy__;
    }
    if (zz != NULL) {
        *zz = zz__;
    }
    return xx;
}

//
// The function "sphere" contains the normal interface for the "sphere"
// M-function from file "d:\MATLAB6p1\toolbox\matlab\specgraph\sphere.m" (lines
// 1-35). This function processes any input arguments and passes them to the
// implementation version of the function, appearing above.
//
mwArray sphere(mwArray * yy, mwArray * zz, mwArray n) {
    int nargout(1);
    mwArray xx(mclGetUninitializedArray());
    mwArray yy__(mclGetUninitializedArray());
    mwArray zz__(mclGetUninitializedArray());
    if (yy != NULL) {
        ++nargout;
    }
    if (zz != NULL) {
        ++nargout;
    }
    xx = Msphere(&yy__, &zz__, nargout, n);
    if (yy != NULL) {
        *yy = yy__;
    }
    if (zz != NULL) {
        *zz = zz__;
    }
    return xx;
}

//
// The function "Vsphere" contains the void interface for the "sphere"
// M-function from file "d:\MATLAB6p1\toolbox\matlab\specgraph\sphere.m" (lines
// 1-35). 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 Vsphere(mwArray n) {
    mwArray xx(mwArray::UNDEFINED);
    mwArray yy(mwArray::UNDEFINED);
    mwArray zz(mwArray::UNDEFINED);
    xx = Msphere(&yy, &zz, 0, n);
}

//
// The function "mlxSphere" contains the feval interface for the "sphere"
// M-function from file "d:\MATLAB6p1\toolbox\matlab\specgraph\sphere.m" (lines
// 1-35). The feval function calls the implementation version of sphere through
// this function. This function processes any input arguments and passes them
// to the implementation version of the function, appearing above.
//
void mlxSphere(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        mwArray mprhs[1];
        mwArray mplhs[3];
        int i;
        mclCppUninitializeArrays(3, mplhs);
        if (nlhs > 3) {
            error(_mxarray0_);
        }
        if (nrhs > 1) {
            error(_mxarray2_);
        }
        for (i = 0; i < 1 && i < nrhs; ++i) {
            mprhs[i] = mwArray(prhs[i], 0);
        }
        for (; i < 1; ++i) {
            mprhs[i].MakeDIN();
        }
        mplhs[0] = Msphere(&mplhs[1], &mplhs[2], nlhs, mprhs[0]);
        plhs[0] = mplhs[0].FreezeData();
        for (i = 1; i < 3 && i < nlhs; ++i) {
            plhs[i] = mplhs[i].FreezeData();
        }
    }
    MW_END_MLX();
}

//
// The function "Msphere" is the implementation version of the "sphere"
// M-function from file "d:\MATLAB6p1\toolbox\matlab\specgraph\sphere.m" (lines
// 1-35). 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 [xx,yy,zz] = sphere(n)
//
static mwArray Msphere(mwArray * yy, mwArray * zz, int nargout_, mwArray n) {
    mwLocalFunctionTable save_local_function_table_
      (&_local_function_table_sphere);
    int nargin_(nargin(1, mwVarargin(n)));
    mwArray xx(mclGetUninitializedArray());
    mwArray ans(mclGetUninitializedArray());
    mwArray z(mclGetUninitializedArray());
    mwArray y(mclGetUninitializedArray());
    mwArray x(mclGetUninitializedArray());
    mwArray sintheta(mclGetUninitializedArray());
    mwArray cosphi(mclGetUninitializedArray());
    mwArray phi(mclGetUninitializedArray());
    mwArray theta(mclGetUninitializedArray());
    //
    // %SPHERE Generate sphere.
    // %   [X,Y,Z] = SPHERE(N) generates three (N+1)-by-(N+1)
    // %   matrices so that SURF(X,Y,Z) produces a unit sphere.
    // %
    // %   [X,Y,Z] = SPHERE uses N = 20.
    // %
    // %   SPHERE(N) and just SPHERE graph the sphere as a SURFACE
    // %   and do not return anything.
    // %
    // %   See also ELLIPSOID, CYLINDER.
    // 
    // %   Clay M. Thompson 4-24-91, CBM 8-21-92.
    // %   Copyright 1984-2001 The MathWorks, Inc. 
    // %   $Revision: 5.7 $  $Date: 2001/04/15 12:03:55 $
    // 
    // if nargin == 0, n = 20; end
    //
    if (nargin_ == 0) {
        n = _mxarray4_;
    }
    //
    // 
    // % -pi <= theta <= pi is a row vector.
    // % -pi/2 <= phi <= pi/2 is a column vector.
    // theta = (-n:2:n)/n*pi;
    //
    theta
      = colon(- mwVa(n, "n"), _mxarray5_, mwVa(n, "n")) / mwVa(n, "n")
        * _mxarray6_;
    //
    // phi = (-n:2:n)'/n*pi/2;
    //
    phi
      = ctranspose(colon(- mwVa(n, "n"), _mxarray5_, mwVa(n, "n")))
        / mwVa(n, "n")
        * _mxarray6_
        / _mxarray5_;
    //
    // cosphi = cos(phi); cosphi(1) = 0; cosphi(n+1) = 0;
    //
    cosphi = cos(mwVv(phi, "phi"));
    mclIntArrayAssign(&cosphi, _mxarray7_, 1);
    mclArrayAssign(&cosphi, _mxarray7_, mwVa(n, "n") + _mxarray8_);
    //
    // sintheta = sin(theta); sintheta(1) = 0; sintheta(n+1) = 0;
    //
    sintheta = sin(mwVv(theta, "theta"));
    mclIntArrayAssign(&sintheta, _mxarray7_, 1);
    mclArrayAssign(&sintheta, _mxarray7_, mwVa(n, "n") + _mxarray8_);
    //
    // 
    // x = cosphi*cos(theta);
    //
    x = mwVv(cosphi, "cosphi") * mwVe(cos(mwVv(theta, "theta")));
    //
    // y = cosphi*sintheta;
    //
    y = mwVv(cosphi, "cosphi") * mwVv(sintheta, "sintheta");
    //
    // z = sin(phi)*ones(1,n+1);
    //
    z
      = mwVe(sin(mwVv(phi, "phi")))
        * mwVe(ones(mwVarargin(_mxarray8_, mwVa(n, "n") + _mxarray8_)));
    //
    // 
    // if nargout == 0
    //
    if (nargout_ == 0) {
        //
        // surf(x,y,z)
        //
        ans.EqPrintAns(
          Nsurf(0, mwVarargin(mwVv(x, "x"), mwVv(y, "y"), mwVv(z, "z"))));
    //
    // else
    //
    } else {
        //
        // xx = x; yy = y; zz = z;
        //
        xx = mwVsv(x, "x");
        *yy = mwVsv(y, "y");
        *zz = mwVsv(z, "z");
    //
    // end
    //
    }
    mwValidateOutput(xx, 1, nargout_, "xx", "sphere");
    mwValidateOutput(*yy, 2, nargout_, "yy", "sphere");
    mwValidateOutput(*zz, 3, nargout_, "zz", "sphere");
    return xx;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美偷拍另类a∨色屁股| 国产欧美日韩在线观看| 夜夜精品浪潮av一区二区三区| 97久久人人超碰| 亚洲女人的天堂| 欧美日韩精品免费观看视频| 蜜臀av一区二区在线免费观看| 精品国产三级电影在线观看| 国产成人精品网址| 最好看的中文字幕久久| 在线成人小视频| 国产成人免费视频一区| 亚洲女女做受ⅹxx高潮| 91精品国产高清一区二区三区| 国产综合一区二区| 亚洲日本成人在线观看| 欧美喷潮久久久xxxxx| 国产综合色在线视频区| 亚洲天堂免费在线观看视频| 欧美二区在线观看| 成人精品国产一区二区4080| 午夜免费久久看| 久久久亚洲国产美女国产盗摄 | 偷拍一区二区三区四区| 这里是久久伊人| 99久久精品免费| 日本网站在线观看一区二区三区 | 91网站视频在线观看| 三级成人在线视频| 欧美激情一区不卡| 在线电影一区二区三区| 成人性生交大片免费看中文| 日韩精品亚洲专区| 亚洲同性gay激情无套| 精品国产sm最大网站免费看| 色噜噜狠狠色综合中国| 国产在线精品免费av| 午夜精品久久久久久久蜜桃app| 中文字幕国产一区| 日韩欧美自拍偷拍| 在线看日本不卡| 成人小视频免费在线观看| 久久精品国产999大香线蕉| 一二三区精品视频| 中文字幕免费观看一区| 精品国产一区二区三区av性色 | 国产精品久久久久久久浪潮网站| 69久久99精品久久久久婷婷| 91亚洲精品久久久蜜桃| 国产电影一区在线| 精品一区二区av| 视频一区国产视频| 亚洲va中文字幕| 亚洲免费视频成人| 亚洲欧美视频在线观看视频| 中文字幕乱码久久午夜不卡| 精品va天堂亚洲国产| 欧美成人r级一区二区三区| 欧美理论电影在线| 在线精品视频一区二区三四| 色婷婷综合久久久中文一区二区| 懂色av一区二区三区蜜臀| 国内精品久久久久影院一蜜桃| 奇米一区二区三区| 日韩av不卡在线观看| 亚洲成av人在线观看| 亚洲福利视频三区| 亚洲福利一区二区三区| 午夜视频在线观看一区二区| 亚洲va欧美va人人爽| 日日嗨av一区二区三区四区| 日韩精品国产精品| 毛片不卡一区二区| 精品影院一区二区久久久| 蜜臀av国产精品久久久久| 麻豆精品视频在线| 久久99精品久久久| 国产麻豆精品theporn| 国产精品一区二区男女羞羞无遮挡| 国产原创一区二区三区| 国产在线精品免费| 成人中文字幕合集| 91色porny蝌蚪| 欧美三级韩国三级日本一级| 91精品在线观看入口| 日韩欧美一卡二卡| 国产亚洲人成网站| 成人免费小视频| 一区二区三区成人| 日本中文字幕不卡| 国产乱对白刺激视频不卡| 国产一区二区成人久久免费影院| 国产成人小视频| 91麻豆自制传媒国产之光| 欧美午夜精品一区二区三区| 欧美一区二区三区影视| 久久久天堂av| 亚洲日本青草视频在线怡红院| 夜色激情一区二区| 免费成人在线观看视频| 成人污污视频在线观看| 欧美午夜片在线看| 精品久久久久av影院| 国产精品久久久久久久久动漫| 亚洲人成亚洲人成在线观看图片| 亚洲成a天堂v人片| 国产在线一区二区综合免费视频| 成年人网站91| 欧美男人的天堂一二区| 久久新电视剧免费观看| 樱花影视一区二区| 国产一区二区三区日韩| 91毛片在线观看| 26uuu色噜噜精品一区二区| 亚洲男人的天堂av| 韩国精品一区二区| 91黄色免费版| 国产亚洲一区二区三区| 午夜精品福利一区二区蜜股av| 国产91丝袜在线播放| 欧美午夜精品一区二区三区| 久久精品免费在线观看| 五月婷婷综合激情| 99国产精品99久久久久久| 欧美不卡在线视频| 亚洲国产色一区| 成人av电影观看| www国产亚洲精品久久麻豆| 亚洲自拍欧美精品| 成人理论电影网| 日韩美女主播在线视频一区二区三区| 亚洲三级免费观看| 国产 日韩 欧美大片| 91精品国产入口| 亚洲精品自拍动漫在线| 国产ts人妖一区二区| 日韩一区二区三区观看| 亚洲黄色免费网站| 99视频在线观看一区三区| 26uuuu精品一区二区| 美女在线观看视频一区二区| 欧美优质美女网站| 中文字幕中文字幕中文字幕亚洲无线| 久久精品国产精品青草| 91精品国产91热久久久做人人| 一区二区三区精品视频在线| 99综合电影在线视频| 国产校园另类小说区| 激情成人综合网| 日韩精品一区二区三区四区| 天天综合色天天综合色h| 欧美性猛交xxxxxxxx| 一区二区三区在线观看网站| 99精品视频一区二区三区| 欧美高清在线一区| 成人午夜视频免费看| 国产精品美女久久久久aⅴ| 懂色av一区二区三区蜜臀| 国产日韩欧美一区二区三区综合| 精品一区二区三区在线观看| 精品成人在线观看| 国产一区二区在线视频| 日韩精品一区二区三区老鸭窝| 日韩精品一区第一页| 91精品国产美女浴室洗澡无遮挡| 日韩精品电影一区亚洲| 日韩限制级电影在线观看| 免费国产亚洲视频| 日韩精品一区二区三区视频在线观看 | 成人午夜在线免费| 欧美激情一区二区三区四区| 成人av资源下载| 综合亚洲深深色噜噜狠狠网站| 99国产精品国产精品久久| 一区二区三区在线高清| 欧美日韩专区在线| 久久精品国产久精国产爱| 久久久亚洲综合| 91免费版在线看| 亚洲一区二区精品视频| 在线成人午夜影院| 国产在线视频精品一区| 国产精品嫩草久久久久| 在线观看一区日韩| 免费的国产精品| 中文字幕欧美激情| 欧美在线观看一区二区| 首页综合国产亚洲丝袜| 精品国产网站在线观看| 粉嫩在线一区二区三区视频| 一区二区三区日韩精品视频| 欧美性猛交xxxx黑人交| 国产在线麻豆精品观看| 中文字幕一区二区在线播放| 欧美日韩免费一区二区三区视频| 久久99精品久久久久久动态图| 综合激情成人伊人| 欧美丰满少妇xxxbbb| 丁香五精品蜜臀久久久久99网站| 亚洲一区二区免费视频|