⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opt_screen.htm

📁 Matlab实现光线跟踪算法
💻 HTM
字号:
<HTML>                                              <HEAD>                                                <TITLE>/</TITLE>                                    <META NAME="GENERATOR" CONTENT="HTML-TOOLBOX ">   </HEAD>                                             <BODY bgcolor="#FFFFF0"> <HR WIDTH="100%"></P> <CENTER><P><FONT COLOR="#000000"><FONT SIZE=+3>Cross-linked m-file</FONT></FONT></P></CENTER> <CENTER><P><FONT COLOR="#000000"><FONT SIZE=+1></FONT></FONT></P></CENTER> <CENTER><P><FONT COLOR="#000000"><FONT SIZE=+2>opt_screen.m</FONT></FONT></P></CENTER> <CENTER><P><FONT COLOR="#000000"><FONT SIZE=+1>Located in:</FONT></FONT></P></CENTER> <CENTER><P><FONT COLOR="#000000"><FONT SIZE=+1>/home/bjorn/matlab/Optical_bench</FONT></FONT></P></CENTER> <P><HR WIDTH="100%"></P> <P><FONT COLOR="#000000"><FONT SIZE=+2>Function synopsis</FONT></FONT></P> <P><FONT COLOR="#000000"><FONT SIZE=+1> [opt1] = opt_screen(opt_type,opt_args)                                                                                                              </FONT></FONT></P> <P><HR WIDTH="100%"></P> <P><FONT COLOR="#000000"><FONT SIZE=+2>Function comments</FONT></FONT></P> <pre> % % OPT_SCREEN - Screen - imaging detector. % OPT_TYPE should be 'screen' (hm good and vital argument), OPT_SPEC % should be a string matrix, see README_OPT for specification. %   Necessary specification fields: % r1, dxdydx, imgres %   Optional specification fields: % normal % example OPT_SPEC: % 'normal      1 0 0' % 'r1          12 0 0' % 'dxdydz      0 1.5 1.5' % % % See also OPT_LENS, OPT_SCREEN, OPT_GRID, OPT_PRISM, OPT_SLIT </pre> <P><HR WIDTH="100%"></P> <P><FONT COLOR="#000000"><FONT SIZE=+1>m-files called by opt_screen.m</FONT></FONT></P> <UL> <LI><A HREF ="opt_findstr.htm">opt_findstr</A></LI> <LI><A HREF ="opt_elem.htm">opt_elem</A></LI> </UL> <P><HR WIDTH="100%"></P> <P><FONT COLOR="#000000"><FONT SIZE=+1>m-files that call opt_screen.m</FONT></FONT></P> <UL> <LI><A HREF ="Contents.htm">Contents</A></LI> <LI><A HREF ="opt_exempel.htm">opt_exempel</A></LI> <LI><A HREF ="opt_build.htm">opt_build</A></LI> </UL> <P><HR WIDTH="100%"></P> <P><FONT COLOR="#000000"><FONT SIZE=+1>All the cross references in the source m-code of opt_screen.m</FONT></FONT></P> <pre> function [opt1] = opt_screen(opt_type,opt_args) % [opt1] = opt_screen(opt_type,opt_args) % % OPT_SCREEN - Screen - imaging detector. % OPT_TYPE should be 'screen' (hm good and vital argument), OPT_SPEC % should be a string matrix, see README_OPT for specification. %   Necessary specification fields: % r1, dxdydx, imgres %   Optional specification fields: % normal % example OPT_SPEC: % 'normal      1 0 0' % 'r1          12 0 0' % 'dxdydz      0 1.5 1.5' % % % See also OPT_LENS, OPT_SCREEN, OPT_GRID, OPT_PRISM, OPT_SLIT  % Version: 1.0 % Copyright: Bjorn Gustavsson 20020430  if nargin ~= 2,   help opt_screen;   ok = 0;   return; end  opt1 = <A HREF ="opt_elem.htm">opt_elem</A>(opt_type);  % defaults opt1.r(2:3) = 0;   % Screen centered on the optical axis opt1.n = [1 0 0];   % Screen paralell with the optical axis opt1.glass = 'air'; % set the necessary ones: % screen size i = <A HREF ="opt_findstr.htm">opt_findstr</A>(opt_args,'dydz'); opt1.dxdydz = str2num(opt_args(i,12:end)); % screen position i = <A HREF ="opt_findstr.htm">opt_findstr</A>(opt_args,'r1'); opt1.r = str2num(opt_args(i,12:end)); i = <A HREF ="opt_findstr.htm">opt_findstr</A>(opt_args,'imgres'); opt1.imgres = str2num(opt_args(i(1),12:end)); opt1.img = zeros(opt1.imgres);  % set the optional ones i = <A HREF ="opt_findstr.htm">opt_findstr</A>(opt_args,'normal'); if length(i) == 1    opt1.n = str2num(opt_args(i(1),12:end));  end  </pre> <P><HR WIDTH="100%"></P> <P><I><FONT COLOR="#0000FF"><FONT SIZE=+1>Written by  B. Gustavsson 13:27 29/1 2003 <IMG SRC = "file:/home/bjorn/matlab/Local/Tools/htmltool/gifs/copyright.gif" ></FONT></FONT></I></P> <P><I><FONT COLOR="#0000FF"><FONT SIZE=+1>E-mail:</B><A HREF = "mailto:bjorn@irf.se">bjorn@irf.se</A></H4></FONT></FONT></I></P> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -