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

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

?? zsetmemstate.m

?? zemax與matlab調用程序
?? M
字號:
function Success = zSetMEMState(Surface, Object, AddressingMode, MirrorStateMatrix)
% Set the mirror states of a ZEMAX MEMS non-sequential digital mirror device (DMD or DLP).
%
% Usage : Success = zSetMEMState(Surface, Object, AddressingMode, MirrorStateMatrix)
%
% where the Surface is the Non-sequential group, and Object is the MEMS object within the group,
% the AddressingMode has the value 0, 1 or 2 for row addressing, column addressing or pixel addressing respectively.
% In the row or column mode, entire rows respectively columns of mirrors have the same state.
% MirrorStateMatrix is an array of integers having value 0, 1 or 2 only. In row or column addressing mode, MirrorStateMatrix
% must be a vector having the same number of rows respectively columns as the MEMS.
% In the pixel addressing mode, MirrorStateMatrix must have the same number of rows and columns as the MEMS.
% Returns 0 or 1 for failure and success respectively.
% This command will change the lens in the LDE.

% MZDDE - The ZEMAX DDE Toolbox for Matlab.
% Copyright (C) 2002-2004 Defencetek, CSIR
% Contact : dgriffith@csir.co.za
% 
% This file is part of MZDDE.
% 
%  MZDDE is free software; you can redistribute it and/or modify
%  it under the terms of the GNU General Public License as published by
%  the Free Software Foundation; either version 2 of the License, or
%  (at your option) any later version.
%
%  MZDDE is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%  GNU General Public License for more details.
%
%  You should have received a copy of the GNU General Public License
%  along with MZDDE (COPYING.html); if not, write to the Free Software
%  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
%

% Copyright 2005, Defencetek, CSIR
% $Revision: 1.0 $
% $Author: dgriffith $


% First get a fresh copy of the lens in the LDE.
zGetRefresh;

% Check the type and mode of the MEMS surface
type = zgetnscobjectdata(Surface,Object,0);
if ~strcmp(type(1:4),'MEMS')
    error('This object is not a MEMS');
    
end

memsmode = zgetnscparameter(Surface,Object,9);
memscols = zgetnscparameter(Surface,Object,2);
memsrows = zgetnscparameter(Surface,Object,1);

staterows = size(MirrorStateMatrix,1);
statecols = size(MirrorStateMatrix,2);

% Check that the state array is within the range 0 - 2
for i=1:size(MirrorStateMatrix,1)
    for j=1:size(MirrorStateMatrix,2)
      if (MirrorStateMatrix(i,j) < 0) || (MirrorStateMatrix(i,j) > 2)
          error('MirrorStateMatrix must be in range 0 to 2.');
      end
    end
end

% Now check if the number of rows, column and/or pixels matches the size of the state matrix
% and set up the parameters of the MEMS.
switch memsmode
    case 0
        % Array is addressed by rows
        if (length(MirrorStateMatrix) ~= memsrows)
            error('Length of MirrorStateMatrix must be equal to number of rows in MEMS');
        end
        % Compute the number of parameters that must be set in the non-seq editor
        parms = floor(memsrows / 15)+1;
        for parm = 1:1:parms
            % Synthesize the value for the parameter
            bigX = 0;
            for therow = ((parm-1)*15+1):1:(parm*15)
                if therow <= memsrows
                    bigX = bigX + MirrorStateMatrix(therow) * 3^(rem(therow-1,15));
                end
            end
            % Set the parameter
            zsetnscparameter(Surface, Object, parm+9, bigX);
        end
    case 1
        % Array is addressed by columns
         if (length(MirrorStateMatrix) ~= memscols)
            error('Length of MirrorStateMatrix must be equal to number of columns in MEMS');
        end
        parms = floor(memscols / 15)+1;
        for parm = 1:1:parms
            % Synthesize the value for the parameter
            bigX = 0;
            for thecol = ((parm-1)*15+1):1:(parm*15)
                if thecol <= memscols
                    bigX = bigX + MirrorStateMatrix(thecol) * 3^(rem(thecol-1,15));
                end
            end
            % Set the parameter
            zsetnscparameter(Surface, Object, parm+9, bigX);
        end
        
    otherwise
        % Array is addressed by pixels
        if (staterows ~= memsrows) || (statecols ~= memscols)
            error('Size of MirrorStateMatrix is not the same as the MEMS');
        end
        parms = floor(memsrows * memscols / 15)+1;
        for parm = 1:1:parms
            % Synthesize the value for the parameter
            bigX = 0;
            for thepix = ((parm-1)*15+1):1:(parm*15)
                if thepix <= memscols * memsrows
                    bigX = bigX + MirrorStateMatrix(thepix) * 3^(rem(thepix-1,15));
                end
            end
            % Set the parameter
            zsetnscparameter(Surface, Object, parm+9, bigX);
        end       
end
Success = zpushlens(20);


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利视频网站| 国产成人免费视| 成人免费视频在线观看| 久久精品亚洲麻豆av一区二区 | 色伊人久久综合中文字幕| 高清不卡一区二区在线| 激情六月婷婷综合| 国产曰批免费观看久久久| 狠狠色狠狠色综合系列| 国产在线精品一区二区不卡了| 精品制服美女丁香| 狠狠色丁香久久婷婷综| 国产精品香蕉一区二区三区| 国产精品88888| 国产91精品露脸国语对白| 国产成+人+日韩+欧美+亚洲| 成人精品亚洲人成在线| 色综合网色综合| 欧美男生操女生| 欧美日韩三级一区二区| 91精品国产福利在线观看| 欧美一区二区日韩一区二区| 欧美mv日韩mv国产| 欧美国产综合一区二区| 亚洲精选视频免费看| 日产欧产美韩系列久久99| 激情欧美日韩一区二区| www.亚洲人| 欧美日韩三级一区| 久久久精品tv| 亚洲一区二区中文在线| 韩国精品在线观看| 色婷婷综合在线| 欧美成人一级视频| 17c精品麻豆一区二区免费| 亚洲1区2区3区4区| 成人激情免费视频| 欧美色综合网站| 精品国产伦一区二区三区观看体验 | 成人一区二区视频| 欧美性videosxxxxx| 久久久午夜电影| 亚洲精品亚洲人成人网 | 蜜臂av日日欢夜夜爽一区| 精品在线播放免费| 日本韩国精品一区二区在线观看| 日韩欧美一区二区久久婷婷| 一色桃子久久精品亚洲| 激情久久五月天| 欧美亚日韩国产aⅴ精品中极品| 日韩免费在线观看| 亚洲成人久久影院| 99re这里只有精品首页| 久久久久久久久伊人| 香蕉成人啪国产精品视频综合网| 成人综合婷婷国产精品久久蜜臀| 51精品视频一区二区三区| 亚洲欧美日韩系列| 国产99久久久国产精品潘金 | 欧美mv日韩mv国产网站| 亚洲福利视频导航| 色婷婷综合中文久久一本| 久久人人97超碰com| 日本中文字幕一区二区有限公司| www.欧美精品一二区| 国产亚洲福利社区一区| 国产一区二区三区综合| 51午夜精品国产| 日韩电影在线观看网站| 欧美日韩精品欧美日韩精品一综合| 国产精品剧情在线亚洲| 成人久久视频在线观看| 欧美经典一区二区| 国产91清纯白嫩初高中在线观看 | 国产色91在线| 国产伦精品一区二区三区视频青涩| 欧美精品九九99久久| 亚洲午夜电影在线| 欧美日韩国产综合草草| 一二三四社区欧美黄| 97精品超碰一区二区三区| 中文字幕不卡的av| 成人精品视频网站| 亚洲欧美自拍偷拍| 91久久精品一区二区二区| 亚洲色图欧美偷拍| 欧美综合天天夜夜久久| 午夜a成v人精品| 欧美一级在线免费| 精品一区二区免费| 日本一区二区免费在线观看视频| 成人性生交大片| 亚洲另类在线视频| 欧美三级蜜桃2在线观看| 天天综合日日夜夜精品| 日韩欧美美女一区二区三区| 九色综合国产一区二区三区| 久久精品视频一区二区三区| 国产成人综合在线观看| 亚洲精品你懂的| 9191久久久久久久久久久| 久久电影网站中文字幕| 亚洲国产精品激情在线观看| 色香色香欲天天天影视综合网| 午夜精品久久久久久久久| 精品动漫一区二区三区在线观看| 成人一区二区三区| 午夜精品成人在线| 国产性色一区二区| 欧美体内she精高潮| 国产综合一区二区| 亚洲国产美女搞黄色| 久久综合色综合88| 欧美性做爰猛烈叫床潮| 国产一区二区三区蝌蚪| 亚洲一区二区高清| 日本一区免费视频| 91精品午夜视频| 99国产欧美另类久久久精品| 免费精品视频最新在线| 亚洲欧美激情视频在线观看一区二区三区| 欧美羞羞免费网站| 成人性色生活片| 久久国产精品第一页| 一区二区在线观看不卡| 国产视频一区二区在线观看| 欧美日韩日日夜夜| aaa亚洲精品一二三区| 久久99精品久久久久婷婷| 一区二区三区日韩精品视频| 国产午夜精品一区二区| 欧美电影免费观看高清完整版在| 91精品办公室少妇高潮对白| 国产精品66部| 精品中文字幕一区二区| 日韩国产成人精品| 亚洲一区二区三区视频在线 | 亚洲成人av一区| 久久久久青草大香线综合精品| 欧美亚洲国产bt| 99re6这里只有精品视频在线观看| 蜜臀久久久久久久| 亚洲成av人**亚洲成av**| 亚洲欧美视频在线观看视频| 日本一区二区三区在线观看| 久久亚洲一级片| 欧美电影免费观看高清完整版| 欧美日韩午夜影院| 91福利国产成人精品照片| 99精品国产视频| 91丨国产丨九色丨pron| www.成人网.com| 99久久99久久精品免费观看| 盗摄精品av一区二区三区| 激情都市一区二区| 紧缚奴在线一区二区三区| 玖玖九九国产精品| 激情图区综合网| 理论片日本一区| 捆绑调教美女网站视频一区| 日韩电影在线观看电影| 爽爽淫人综合网网站| 五月激情综合网| 免费看欧美美女黄的网站| 男人的天堂久久精品| 久久国产精品色婷婷| 国产一区二区三区av电影| 高清beeg欧美| 99精品欧美一区| 欧美日韩一区小说| 欧美一级夜夜爽| 久久一二三国产| 日韩毛片一二三区| 麻豆国产精品视频| 高清国产一区二区三区| 色综合久久中文综合久久牛| 欧美午夜寂寞影院| 欧美电视剧在线看免费| 欧美国产乱子伦| 亚洲一区在线视频| 老司机一区二区| 99久久精品99国产精品| 欧美日韩成人一区| 久久精品欧美一区二区三区麻豆| 日本一区二区不卡视频| 亚洲自拍偷拍麻豆| 国产最新精品精品你懂的| 97国产精品videossex| 91精品国产综合久久久久久| 国产女人18水真多18精品一级做| 一区二区三区在线观看欧美| 久久av资源网| 色综合婷婷久久| 精品国产自在久精品国产| 国产精品高潮呻吟| 久久精品国产在热久久| 97国产一区二区| 欧美va亚洲va| 亚洲福利国产精品| 成人av动漫在线|