source: MML/trunk/at/doc_html/at/simulator/element/mDriftPass.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 3.2 KB
Line 
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 &copy; 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> &gt;  <a href="../../index.html">at</a> &gt; <a href="#">simulator</a> &gt; <a href="index.html">element</a> &gt; mDriftPass.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../../../index.html"><img alt="<" border="0" src="../../../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for at/simulator/element&nbsp;<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>
35This function calls:
36<ul style="list-style-image:url(../../../matlabicon.gif)">
37</ul>
38This 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>
460002 <span class="comment">% MDRIFTPASS - example of pass method in matlab</span>
470003 <span class="comment">%  Same physics and calling syntax as DriftPass.c</span>
480004
490005 <span class="keyword">if</span> nargin
500006     Out1 = Rin;
510007     NormL = DriftData.Length./(1+Rin(5,:));
520008     Out1(1,:) = Out1(1,:) + Rin(2,:).*NormL;
530009     Out1(3,:) = Out1(3,:) + Rin(4,:).*NormL;
540010     Out1(6,:) = Out1(6,:) + NormL.*(Rin(2,:).*Rin(2,:) + Rin(4,:).*Rin(4,:))./(1+Rin(5,:))/2;
550011 <span class="keyword">else</span> <span class="comment">% If called with no input args - return lists of required and optional fields</span>
560012     Out1 = {<span class="string">'Length'</span>};
570013     Out2 = {};
580014
590015 <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> &copy; 2003</address>
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.