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 showao</title> |
---|
6 | <meta name="keywords" content="showao"> |
---|
7 | <meta name="description" content="SHOWAO - Display the AcceleratorObjects fields containing Tango part"> |
---|
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">mml</a> > showao.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 mml <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>showao |
---|
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>SHOWAO - Display the AcceleratorObjects fields containing Tango part</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 showao(Family) </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">SHOWAO - Display the AcceleratorObjects fields containing Tango part |
---|
31 | |
---|
32 | INPUTS |
---|
33 | 1. Family - Family Name |
---|
34 | |
---|
35 | See Also <a href="getfamilylist.html" class="code" title="function [Families, AO] = getfamilylist(OutputFlag)">getfamilylist</a>, <a href="showfamily.html" class="code" title="function AO = showfamily(Family)">showfamily</a>, <a href="isfamily.html" class="code" title="function [FamilyFlag, AO] = isfamily(Family, Field)">isfamily</a>, getfamilytype</pre></div> |
---|
36 | |
---|
37 | <!-- crossreference --> |
---|
38 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
39 | This function calls: |
---|
40 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
41 | <li><a href="getao.html" class="code" title="function AO = getao(FileName)">getao</a> GETAO - returns the AcceleratorObject (AO)</li></ul> |
---|
42 | This function is called by: |
---|
43 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
44 | </ul> |
---|
45 | <!-- crossreference --> |
---|
46 | |
---|
47 | |
---|
48 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
49 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function showao(Family)</a> |
---|
50 | 0002 <span class="comment">%SHOWAO - Display the AcceleratorObjects fields containing Tango part</span> |
---|
51 | 0003 <span class="comment">%</span> |
---|
52 | 0004 <span class="comment">% INPUTS</span> |
---|
53 | 0005 <span class="comment">% 1. Family - Family Name</span> |
---|
54 | 0006 <span class="comment">%</span> |
---|
55 | 0007 <span class="comment">% See Also getfamilylist, showfamily, isfamily, getfamilytype</span> |
---|
56 | 0008 |
---|
57 | 0009 <span class="comment">%</span> |
---|
58 | 0010 <span class="comment">% Written by Greogory J. Portmann</span> |
---|
59 | 0011 <span class="comment">% Modified by Laurent S. Nadolski</span> |
---|
60 | 0012 <span class="comment">% ChannelNames --> TangoNames</span> |
---|
61 | 0013 |
---|
62 | 0014 ao = <a href="getao.html" class="code" title="function AO = getao(FileName)">getao</a>; |
---|
63 | 0015 <span class="keyword">if</span> nargin < 1 |
---|
64 | 0016 FieldNameCell = fieldnames(ao); |
---|
65 | 0017 <span class="keyword">else</span> |
---|
66 | 0018 FieldNameCell = {Family}; |
---|
67 | 0019 <span class="keyword">end</span> |
---|
68 | 0020 |
---|
69 | 0021 <span class="keyword">for</span> i = 1:length(FieldNameCell) |
---|
70 | 0022 <span class="keyword">if</span> isfield(ao, FieldNameCell{i}) |
---|
71 | 0023 <span class="keyword">if</span> isfield(ao.(FieldNameCell{i}),<span class="string">'FamilyName'</span>) |
---|
72 | 0024 fprintf(<span class="string">'Family = %s\n'</span>, ao.(FieldNameCell{i}).FamilyName); |
---|
73 | 0025 <span class="keyword">end</span> |
---|
74 | 0026 <span class="comment">% Find all the subfields that are data structures</span> |
---|
75 | 0027 SubFieldNameCell = fieldnames(ao.(FieldNameCell{i})); |
---|
76 | 0028 <span class="keyword">for</span> ii = 1:length(SubFieldNameCell) |
---|
77 | 0029 <span class="keyword">if</span> isfield(ao.(FieldNameCell{i}).(SubFieldNameCell{ii}),<span class="string">'TangoNames'</span>) |
---|
78 | 0030 fprintf(<span class="string">'%s.%s\n'</span>, ao.(FieldNameCell{i}).FamilyName, SubFieldNameCell{ii}); |
---|
79 | 0031 <span class="keyword">end</span> |
---|
80 | 0032 <span class="keyword">end</span> |
---|
81 | 0033 fprintf(<span class="string">'\n'</span>); |
---|
82 | 0034 <span class="keyword">end</span> |
---|
83 | 0035 <span class="keyword">end</span></pre></div> |
---|
84 | <hr><address>Generated on Mon 21-May-2007 15:29:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
85 | </body> |
---|
86 | </html> |
---|