1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of mDriftPass</title> |
---|
6 | <meta name="keywords" content="mDriftPass"> |
---|
7 | <meta name="description" content="MDRIFTPASS - example of pass method in matlab"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../../../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../../../index.html">Home</a> > <a href="../../index.html">at</a> > <a href="#">simulator</a> > <a href="index.html">element</a> > mDriftPass.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../../../index.html"><img alt="<" border="0" src="../../../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for at/simulator/element <img alt=">" border="0" src="../../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>mDriftPass |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
24 | <div class="box"><strong>MDRIFTPASS - example of pass method in matlab</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function [Out1, Out2] = mdriftpass(DriftData,Rin); </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment"> MDRIFTPASS - example of pass method in matlab |
---|
31 | Same physics and calling syntax as DriftPass.c</pre></div> |
---|
32 | |
---|
33 | <!-- crossreference --> |
---|
34 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
35 | This function calls: |
---|
36 | <ul style="list-style-image:url(../../../matlabicon.gif)"> |
---|
37 | </ul> |
---|
38 | This function is called by: |
---|
39 | <ul style="list-style-image:url(../../../matlabicon.gif)"> |
---|
40 | </ul> |
---|
41 | <!-- crossreference --> |
---|
42 | |
---|
43 | |
---|
44 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
45 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [Out1, Out2] = mdriftpass(DriftData,Rin);</a> |
---|
46 | 0002 <span class="comment">% MDRIFTPASS - example of pass method in matlab</span> |
---|
47 | 0003 <span class="comment">% Same physics and calling syntax as DriftPass.c</span> |
---|
48 | 0004 |
---|
49 | 0005 <span class="keyword">if</span> nargin |
---|
50 | 0006 Out1 = Rin; |
---|
51 | 0007 NormL = DriftData.Length./(1+Rin(5,:)); |
---|
52 | 0008 Out1(1,:) = Out1(1,:) + Rin(2,:).*NormL; |
---|
53 | 0009 Out1(3,:) = Out1(3,:) + Rin(4,:).*NormL; |
---|
54 | 0010 Out1(6,:) = Out1(6,:) + NormL.*(Rin(2,:).*Rin(2,:) + Rin(4,:).*Rin(4,:))./(1+Rin(5,:))/2; |
---|
55 | 0011 <span class="keyword">else</span> <span class="comment">% If called with no input args - return lists of required and optional fields</span> |
---|
56 | 0012 Out1 = {<span class="string">'Length'</span>}; |
---|
57 | 0013 Out2 = {}; |
---|
58 | 0014 |
---|
59 | 0015 <span class="keyword">end</span></pre></div> |
---|
60 | <hr><address>Generated on Mon 21-May-2007 15:26:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
61 | </body> |
---|
62 | </html> |
---|