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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zsetfieldmatrix.c

?? zemax與matlab調用程序
?? C
字號:
/*
 * MATLAB Compiler: 3.0
 * Date: Tue Nov 19 14:23:56 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" "-d"
 * "c:\Projects\MZDDE\Temp" "-m" "-W" "main" "-L" "C" "-t" "-T" "link:exe" "-h"
 * "libmmfile.mlib" "-B" "sgl" "-m" "-W" "main" "-L" "C" "-t" "-T" "link:exe"
 * "-h" "libmmfile.mlib" "-W" "mainhg" "libmwsglm.mlib" "accosin" 
 */
#include "zsetfieldmatrix.h"
#include "libmatlbm.h"
#include "zsetfield.h"
#include "zsetfieldtype.h"
static mxArray * _mxarray0_;
static mxArray * _mxarray1_;
static mxArray * _mxarray2_;
static mxArray * _mxarray3_;
static mxArray * _mxarray4_;
static mxArray * _mxarray5_;

void InitializeModule_zsetfieldmatrix(void) {
    _mxarray0_ = mclInitializeDouble(1.0);
    _mxarray1_ = mclInitializeDouble(2.0);
    _mxarray2_ = mclInitializeDouble(12.0);
    _mxarray3_ = mclInitializeDouble(0.0);
    _mxarray4_ = mclInitializeDouble(8.0);
    _mxarray5_ = mclInitializeDoubleVector(0, 0, (double *)NULL);
}

void TerminateModule_zsetfieldmatrix(void) {
    mxDestroyArray(_mxarray5_);
    mxDestroyArray(_mxarray4_);
    mxDestroyArray(_mxarray3_);
    mxDestroyArray(_mxarray2_);
    mxDestroyArray(_mxarray1_);
    mxDestroyArray(_mxarray0_);
}

static mxArray * Mzsetfieldmatrix(int nargout_,
                                  mxArray * FieldType,
                                  mxArray * FieldDataMatrix);

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

/*
 * The function "mlfZsetfieldmatrix" contains the normal interface for the
 * "zsetfieldmatrix" M-function from file "c:\projects\mzdde\zsetfieldmatrix.m"
 * (lines 1-36). This function processes any input arguments and passes them to
 * the implementation version of the function, appearing above.
 */
mxArray * mlfZsetfieldmatrix(mxArray * FieldType, mxArray * FieldDataMatrix) {
    int nargout = 1;
    mxArray * FieldPoints = NULL;
    mlfEnterNewContext(0, 2, FieldType, FieldDataMatrix);
    FieldPoints = Mzsetfieldmatrix(nargout, FieldType, FieldDataMatrix);
    mlfRestorePreviousContext(0, 2, FieldType, FieldDataMatrix);
    return mlfReturnValue(FieldPoints);
}

/*
 * The function "mlxZsetfieldmatrix" contains the feval interface for the
 * "zsetfieldmatrix" M-function from file "c:\projects\mzdde\zsetfieldmatrix.m"
 * (lines 1-36). The feval function calls the implementation version of
 * zsetfieldmatrix through this function. This function processes any input
 * arguments and passes them to the implementation version of the function,
 * appearing above.
 */
void mlxZsetfieldmatrix(int nlhs,
                        mxArray * plhs[],
                        int nrhs,
                        mxArray * prhs[]) {
    mxArray * mprhs[2];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: zsetfieldmatrix Line: 1 Colum"
            "n: 1 The function \"zsetfieldmatrix\" was called wi"
            "th more than the declared number of outputs (1)."),
          NULL);
    }
    if (nrhs > 2) {
        mlfError(
          mxCreateString(
            "Run-time Error: File: zsetfieldmatrix Line: 1 Colum"
            "n: 1 The function \"zsetfieldmatrix\" was called wi"
            "th more than the declared number of inputs (2)."),
          NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 2 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 2; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 2, mprhs[0], mprhs[1]);
    mplhs[0] = Mzsetfieldmatrix(nlhs, mprhs[0], mprhs[1]);
    mlfRestorePreviousContext(0, 2, mprhs[0], mprhs[1]);
    plhs[0] = mplhs[0];
}

/*
 * The function "Mzsetfieldmatrix" is the implementation version of the
 * "zsetfieldmatrix" M-function from file "c:\projects\mzdde\zsetfieldmatrix.m"
 * (lines 1-36). 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 FieldPoints = zSetFieldMatrix(FieldType, FieldDataMatrix)
 */
static mxArray * Mzsetfieldmatrix(int nargout_,
                                  mxArray * FieldType,
                                  mxArray * FieldDataMatrix) {
    mexLocalFunctionTable save_local_function_table_
      = mclSetCurrentLocalFunctionTable(
          &_local_function_table_zsetfieldmatrix);
    mxArray * FieldPoints = NULL;
    mxArray * iii = NULL;
    mxArray * ans = NULL;
    mxArray * ColCount = NULL;
    mxArray * FieldCount = NULL;
    mclCopyArray(&FieldType);
    mclCopyArray(&FieldDataMatrix);
    /*
     * % zSetFieldMatrix - sets all field points from a matrix
     * %
     * % Usage : FieldPoints = zSetFieldMatrix(FieldType, FieldDataMatrix)
     * %
     * % Create and pass a matrix having columns 8 columns of field data xf, yf, wgt, vdx, vdy, vcx, vcy, van
     * % If the matrix has fewer columns, it will be assumed that columns on the right are zero.
     * % The matrix can have from 1 to 12 rows.
     * % The function returns the number of field points set.
     * % The parameter FieldType is an integer; either 0, 1, or 2, for angles in degrees, object height, or paraxial image height,
     * % respectively, 3 for real image height.
     * %
     * % See also zGetField, zSetField
     * %
     * 
     * % Copyright 2002, Defencetek, CSIR
     * % $Revision: 1.1 $
     * 
     * FieldCount = size(FieldDataMatrix,1);
     */
    mlfAssign(
      &FieldCount,
      mlfSize(
        mclValueVarargout(),
        mclVa(FieldDataMatrix, "FieldDataMatrix"),
        _mxarray0_));
    /*
     * ColCount = size(FieldDataMatrix,2);
     */
    mlfAssign(
      &ColCount,
      mlfSize(
        mclValueVarargout(),
        mclVa(FieldDataMatrix, "FieldDataMatrix"),
        _mxarray1_));
    /*
     * if (FieldCount > 12) FieldCount = 12; end;
     */
    if (mclGtBool(mclVv(FieldCount, "FieldCount"), _mxarray2_)) {
        mlfAssign(&FieldCount, _mxarray2_);
    }
    /*
     * if (FieldCount <= 0) FieldPoints = 0; return; end;
     */
    if (mclLeBool(mclVv(FieldCount, "FieldCount"), _mxarray3_)) {
        mlfAssign(&FieldPoints, _mxarray3_);
        goto return_;
    }
    /*
     * zSetFieldType(FieldType, FieldCount);
     */
    mclAssignAns(
      &ans,
      mlfZsetfieldtype(
        mclVa(FieldType, "FieldType"), mclVv(FieldCount, "FieldCount")));
    /*
     * if (ColCount < 8)
     */
    if (mclLtBool(mclVv(ColCount, "ColCount"), _mxarray4_)) {
        mclForLoopIterator viter__;
        /*
         * for iii = (ColCount+1):8,
         */
        for (mclForStart(
               &viter__,
               mclPlus(mclVv(ColCount, "ColCount"), _mxarray0_),
               _mxarray4_,
               NULL);
             mclForNext(&viter__, &iii);
             ) {
            /*
             * FieldDataMatrix(:,iii) = 0;
             */
            mclArrayAssign2(
              &FieldDataMatrix,
              _mxarray3_,
              mlfCreateColonIndex(),
              mclVv(iii, "iii"));
        /*
         * end
         */
        }
        mclDestroyForLoopIterator(viter__);
    /*
     * end
     */
    }
    /*
     * for iii = 1:FieldCount,
     */
    {
        int v_ = mclForIntStart(1);
        int e_ = mclForIntEnd(mclVv(FieldCount, "FieldCount"));
        if (v_ > e_) {
            mlfAssign(&iii, _mxarray5_);
        } else {
            /*
             * zSetField(iii, FieldDataMatrix(iii,1),FieldDataMatrix(iii,2),FieldDataMatrix(iii,3),FieldDataMatrix(iii,4),FieldDataMatrix(iii,5),FieldDataMatrix(iii,6),FieldDataMatrix(iii,7),FieldDataMatrix(iii,8));
             * end
             */
            for (; ; ) {
                mclAssignAns(
                  &ans,
                  mlfZsetfield(
                    mlfScalar(v_),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 1),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 2),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 3),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 4),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 5),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 6),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 7),
                    mclIntArrayRef2(
                      mclVa(FieldDataMatrix, "FieldDataMatrix"), v_, 8)));
                if (v_ == e_) {
                    break;
                }
                ++v_;
            }
            mlfAssign(&iii, mlfScalar(v_));
        }
    }
    /*
     * FieldPoints = FieldCount;
     */
    mlfAssign(&FieldPoints, mclVv(FieldCount, "FieldCount"));
    /*
     * 
     * 
     * 
     */
    return_:
    mclValidateOutput(
      FieldPoints, 1, nargout_, "FieldPoints", "zsetfieldmatrix");
    mxDestroyArray(FieldCount);
    mxDestroyArray(ColCount);
    mxDestroyArray(ans);
    mxDestroyArray(iii);
    mxDestroyArray(FieldDataMatrix);
    mxDestroyArray(FieldType);
    mclSetCurrentLocalFunctionTable(save_local_function_table_);
    return FieldPoints;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产区一| 欧洲一区二区三区在线| 香港成人在线视频| 亚洲欧美日韩国产成人精品影院| 精品久久久久久久久久久久久久久久久| 色婷婷久久综合| 日本韩国精品在线| 99久久婷婷国产精品综合| 国产乱码精品1区2区3区| 国产一区二区精品久久| 精品亚洲免费视频| 国产福利91精品一区| 国产精品一区二区91| 成人午夜免费av| 成人高清伦理免费影院在线观看| 国产黄色精品网站| 99久久国产免费看| 99国产麻豆精品| 色婷婷综合久久久| 日韩欧美在线1卡| 久久久久国产精品免费免费搜索| www久久精品| 国产精品久久久久一区二区三区共| 中文字幕日韩av资源站| 亚洲成人自拍网| 久久99久久精品欧美| 国产高清在线观看免费不卡| 成人国产精品免费观看| 欧美日韩一区二区三区在线| 宅男在线国产精品| 国产欧美视频一区二区| 18欧美亚洲精品| 婷婷夜色潮精品综合在线| 美女网站一区二区| 成人黄色大片在线观看| 欧美亚洲一区二区在线观看| 欧美一卡二卡在线| 国产精品日韩精品欧美在线| 一区二区三区在线免费观看| 免费在线一区观看| 成人午夜免费视频| 91精品一区二区三区在线观看| 久久精品亚洲国产奇米99| 亚洲bt欧美bt精品| 粉嫩aⅴ一区二区三区四区| 91福利国产成人精品照片| 欧美变态凌虐bdsm| 一区二区三区日韩精品| 六月婷婷色综合| 91网页版在线| 26uuu亚洲综合色| 亚洲国产三级在线| 国产69精品久久久久毛片| 欧美日韩久久一区| 亚洲天堂免费看| 国产老妇另类xxxxx| 欧美性受xxxx黑人xyx| 国产视频911| 卡一卡二国产精品| 欧美三级日本三级少妇99| 欧美国产精品专区| 久久狠狠亚洲综合| 欧美剧情电影在线观看完整版免费励志电影| 欧美r级电影在线观看| 一区二区三区久久| av中文一区二区三区| 精品播放一区二区| 免费的国产精品| 9191精品国产综合久久久久久| 亚洲欧美激情小说另类| 粉嫩久久99精品久久久久久夜| 2017欧美狠狠色| 美女mm1313爽爽久久久蜜臀| 91久久免费观看| 亚洲欧美aⅴ...| 91在线丨porny丨国产| 中文字幕av不卡| 国产精品一区二区视频| 久久精品视频在线免费观看| 开心九九激情九九欧美日韩精美视频电影| 欧美日韩国产在线观看| 亚洲成在人线在线播放| 欧美色成人综合| 日日夜夜精品视频免费| 欧美性猛交xxxx乱大交退制版| 亚洲视频在线观看一区| 91在线国产观看| 一区二区三区小说| 欧美在线观看视频一区二区三区| 亚洲日本在线a| 在线视频一区二区三区| 午夜精品123| 欧美精品一区男女天堂| 粉嫩av一区二区三区粉嫩| 亚洲人成网站精品片在线观看| 91久久精品一区二区| 五月婷婷综合在线| 久久影院视频免费| 99久久伊人网影院| 午夜婷婷国产麻豆精品| 日韩一区二区三区免费看| 国产伦精品一区二区三区免费迷 | 一区在线播放视频| 色哟哟一区二区| 丝袜亚洲另类欧美综合| 日韩欧美久久久| 国产乱码精品一区二区三区五月婷| 欧美一级一级性生活免费录像| 国产麻豆欧美日韩一区| 国产日产欧产精品推荐色| 成人av午夜影院| 一区二区三区在线视频播放 | 久久国产福利国产秒拍| 欧美va日韩va| 狠狠色狠狠色综合| 中文字幕一区二区三| 色婷婷综合激情| 日本特黄久久久高潮| 久久久精品免费网站| 国产一区二区在线视频| 一区二区三区波多野结衣在线观看| 欧美性一二三区| 国产毛片精品一区| 一区av在线播放| 91精品国产麻豆国产自产在线| 一级日本不卡的影视| 26uuu亚洲综合色| 91视频在线观看免费| 奇米色777欧美一区二区| 久久久久久久综合日本| 欧美性大战久久久久久久 | 欧美乱熟臀69xxxxxx| 国内精品免费在线观看| 综合久久一区二区三区| 精品视频1区2区3区| 不卡欧美aaaaa| 蜜桃av一区二区在线观看| 国产精品日产欧美久久久久| 欧美日韩和欧美的一区二区| 国产麻豆欧美日韩一区| 午夜激情一区二区| 国产精品久久久久久久久晋中| 91精品国产福利| 色综合色综合色综合色综合色综合| 奇米影视一区二区三区小说| 日韩精品三区四区| 亚洲美女一区二区三区| 国产三级三级三级精品8ⅰ区| 欧美日韩午夜在线| 91网站黄www| 国产·精品毛片| 六月丁香婷婷久久| 一区二区三区美女视频| 中文字幕一区二区5566日韩| 日韩手机在线导航| 欧美理论电影在线| 97精品电影院| av网站免费线看精品| 国产精品一区2区| 成人国产亚洲欧美成人综合网| 久久9热精品视频| 青娱乐精品视频| 强制捆绑调教一区二区| 亚洲在线一区二区三区| 香蕉久久一区二区不卡无毒影院| 国产精品免费aⅴ片在线观看| 欧美tk丨vk视频| 日韩免费高清电影| 日韩一区二区三区免费看 | 成人在线综合网站| 国产黄色精品网站| 成人网页在线观看| av在线免费不卡| 91网站视频在线观看| 99国内精品久久| 欧洲视频一区二区| 99久久精品99国产精品| 在线欧美一区二区| 欧美视频在线观看一区| 91福利国产成人精品照片| 欧美性猛交xxxx黑人交| 日韩欧美国产电影| 精品日韩av一区二区| 久久久久88色偷偷免费| 国产午夜精品在线观看| 中文字幕成人在线观看| 日韩理论片一区二区| 亚洲一级电影视频| 蜜臀精品一区二区三区在线观看| 免费人成在线不卡| 国产永久精品大片wwwapp| 成人免费av资源| 欧美亚洲高清一区| 91精品国产色综合久久ai换脸 | 国产精品资源在线观看| 国产不卡视频一区二区三区| 99久久精品国产一区二区三区| 日本高清视频一区二区| 欧美视频一二三区| 国产精品久久久久久久久久免费看|