comparison toolboxes/FullBNT-1.0.7/KPMtools/asdemo.html @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 <html xmlns:v="urn:schemas-microsoft-com:vml"
2 xmlns:o="urn:schemas-microsoft-com:office:office"
3 xmlns:w="urn:schemas-microsoft-com:office:word"
4 xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
5 xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd"
6 xmlns="http://www.w3.org/TR/REC-html40">
7
8 <head>
9 <meta http-equiv=Content-Type content="text/html; charset=utf-8">
10 <meta name=ProgId content=Word.Document>
11 <meta name=Generator content="Microsoft Word 10">
12 <meta name=Originator content="Microsoft Word 10">
13 <link rel=File-List href="asdemo_files/filelist.xml">
14 <title>asdemo</title>
15 <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
16 name="time"/>
17 <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
18 name="date"/>
19 <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
20 name="place"/>
21 <!--[if gte mso 9]><xml>
22 <o:DocumentProperties>
23 <o:Author>Caroline Schwarz</o:Author>
24 <o:Template>Normal</o:Template>
25 <o:LastAuthor>us</o:LastAuthor>
26 <o:Revision>33</o:Revision>
27 <o:TotalTime>0</o:TotalTime>
28 <o:Created>2005-03-26T16:20:00Z</o:Created>
29 <o:LastSaved>2005-03-30T09:58:00Z</o:LastSaved>
30 <o:Pages>1</o:Pages>
31 <o:Words>1062</o:Words>
32 <o:Characters>6055</o:Characters>
33 <o:Company>office</o:Company>
34 <o:Lines>50</o:Lines>
35 <o:Paragraphs>14</o:Paragraphs>
36 <o:CharactersWithSpaces>7103</o:CharactersWithSpaces>
37 <o:Version>10.3501</o:Version>
38 </o:DocumentProperties>
39 <o:OfficeDocumentSettings>
40 <o:RelyOnVML/>
41 <o:AllowPNG/>
42 <o:TargetScreenSize>1280x1024</o:TargetScreenSize>
43 </o:OfficeDocumentSettings>
44 </xml><![endif]--><!--[if gte mso 9]><xml>
45 <w:WordDocument>
46 <w:SpellingState>Clean</w:SpellingState>
47 <w:GrammarState>Clean</w:GrammarState>
48 <w:Compatibility>
49 <w:UseFELayout/>
50 </w:Compatibility>
51 <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
52 </w:WordDocument>
53 </xml><![endif]--><!--[if !mso]><object
54 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
55 <style>
56 st1\:*{behavior:url(#ieooui) }
57 </style>
58 <![endif]-->
59 <style>
60 <!--p
61 {max-width: 600px;
62 width:expression(document.body.clientWidth > 620 ? "600px": "auto" );}
63 h1
64 {max-width: 600px;
65 width:expression(document.body.clientWidth > 620 ? "600px": "auto" );}
66 h2
67 {max-width: 600px;
68 width:expression(document.body.clientWidth > 620 ? "600px": "auto" );}
69 div
70 {max-width: 600px;
71 width:expression(document.body.clientWidth > 620 ? "600px": "auto" );}
72
73 /* Font Definitions */
74 @font-face
75 {font-family:"MS Mincho";
76 panose-1:2 2 6 9 4 2 5 8 3 4;
77 mso-font-alt:"MS 明朝";
78 mso-font-charset:128;
79 mso-generic-font-family:modern;
80 mso-font-pitch:fixed;
81 mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
82 @font-face
83 {font-family:"\@MS Mincho";
84 panose-1:2 2 6 9 4 2 5 8 3 4;
85 mso-font-charset:128;
86 mso-generic-font-family:modern;
87 mso-font-pitch:fixed;
88 mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
89 /* Style Definitions */
90 p.MsoNormal, li.MsoNormal, div.MsoNormal
91 {mso-style-parent:"";
92 margin:0cm;
93 margin-bottom:.0001pt;
94 mso-pagination:widow-orphan;
95 font-size:10.0pt;
96 font-family:Arial;
97 mso-fareast-font-family:"Times New Roman";
98 mso-believe-normal-left:yes;}
99 h1
100 {mso-margin-top-alt:auto;
101 margin-right:0cm;
102 mso-margin-bottom-alt:auto;
103 margin-left:0cm;
104 mso-pagination:widow-orphan;
105 mso-outline-level:1;
106 font-size:24.0pt;
107 font-family:Arial;
108 mso-fareast-font-family:"MS Mincho";
109 color:#990000;
110 font-weight:bold;}
111 h2
112 {mso-margin-top-alt:auto;
113 margin-right:0cm;
114 mso-margin-bottom-alt:auto;
115 margin-left:0cm;
116 mso-pagination:widow-orphan;
117 mso-outline-level:2;
118 font-size:13.5pt;
119 font-family:Arial;
120 mso-fareast-font-family:"MS Mincho";
121 color:#990000;
122 font-weight:bold;}
123 p
124 {mso-margin-top-alt:auto;
125 margin-right:0cm;
126 mso-margin-bottom-alt:auto;
127 margin-left:0cm;
128 mso-pagination:widow-orphan;
129 font-size:10.0pt;
130 font-family:Arial;
131 mso-fareast-font-family:"Times New Roman";}
132 pre
133 {margin:0cm;
134 margin-bottom:.0001pt;
135 mso-pagination:widow-orphan;
136 tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
137 font-size:10.0pt;
138 font-family:"Courier New";
139 mso-fareast-font-family:"Times New Roman";}
140 p.footer, li.footer, div.footer
141 {mso-style-name:footer;
142 mso-margin-top-alt:auto;
143 margin-right:0cm;
144 mso-margin-bottom-alt:auto;
145 margin-left:0cm;
146 text-align:right;
147 mso-pagination:widow-orphan;
148 font-size:7.5pt;
149 font-family:Arial;
150 mso-fareast-font-family:"Times New Roman";
151 color:gray;
152 font-style:italic;}
153 span.keyword
154 {mso-style-name:keyword;
155 color:blue;}
156 span.comment
157 {mso-style-name:comment;
158 color:forestgreen;}
159 span.string
160 {mso-style-name:string;
161 color:#A020F0;}
162 span.untermstring
163 {mso-style-name:untermstring;
164 color:#B20000;}
165 span.syscmd
166 {mso-style-name:syscmd;
167 color:#B28C00;}
168 span.SpellE
169 {mso-style-name:"";
170 mso-spl-e:yes;}
171 span.GramE
172 {mso-style-name:"";
173 mso-gram-e:yes;}
174 @page Section1
175 {size:612.0pt 792.0pt;
176 margin:72.0pt 90.0pt 72.0pt 90.0pt;
177 mso-header-margin:36.0pt;
178 mso-footer-margin:36.0pt;
179 mso-paper-source:0;}
180 div.Section1
181 {page:Section1;}
182 -->
183 </style>
184 <!--[if gte mso 10]>
185 <style>
186 /* Style Definitions */
187 table.MsoNormalTable
188 {mso-style-name:"Table Normal";
189 mso-tstyle-rowband-size:0;
190 mso-tstyle-colband-size:0;
191 mso-style-noshow:yes;
192 mso-style-parent:"";
193 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
194 mso-para-margin:0cm;
195 mso-para-margin-bottom:.0001pt;
196 mso-pagination:widow-orphan;
197 font-size:10.0pt;
198 font-family:"Times New Roman";}
199 </style>
200 <![endif]--><![if mso 9]>
201 <style>
202 p.MsoNormal
203 {margin-left:7.5pt;}
204 </style>
205 <![endif]><!--
206 This HTML is auto-generated from an M-file.
207 To make changes, update the M-file and republish this document.
208 -->
209 <meta name=date content=2005-03-26>
210 <meta name=m-file content=asdemo>
211 <!--[if gte mso 9]><xml>
212 <o:shapedefaults v:ext="edit" spidmax="5122"/>
213 </xml><![endif]--><!--[if gte mso 9]><xml>
214 <o:shapelayout v:ext="edit">
215 <o:idmap v:ext="edit" data="1"/>
216 </o:shapelayout></xml><![endif]-->
217 </head>
218
219 <body bgcolor=white lang=EN-US style='tab-interval:36.0pt;margin-left:7.5pt;
220 margin-top:7.5pt;margin-right:7.5pt;margin-bottom:7.5pt'>
221
222 <div class=Section1><pre style='margin-left:22.5pt'><span class=comment>% <b
223 style='mso-bidi-font-weight:normal'>ASORT</b></span></pre><pre
224 style='margin-left:22.5pt'><span class=comment>% a pedestrian <b
225 style='mso-bidi-font-weight:normal'>NUMERICAL SORTER</b> of <b
226 style='mso-bidi-font-weight:normal'>ALPHANUMERIC</b> data</span></pre><pre
227 style='margin-left:22.5pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:22.5pt'><span
228 class=comment>% - create some data</span></pre><pre style='margin-left:22.5pt'><b
229 style='mso-bidi-font-weight:normal'><span style='mso-tab-count:2'>          </span>d = {<o:p></o:p></b></pre><pre
230 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
231 2'>         </span>strings with one valid alphanumeric number</span></pre><pre
232 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
233 2'>         </span>sorted <b style='mso-bidi-font-weight:normal'>numerically</b></span></pre><pre
234 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
235 class=string>'-<span class=SpellE><span class=GramE>inf</span></span>'</span></pre><pre
236 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
237 class=string>'<span class=GramE>x-3.2e4y</span>'</span></pre><pre
238 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
239 class=string>'<span class=GramE>f-1.4</span>'</span></pre><pre
240 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
241 class=string>'-.1'</span></pre><pre style='margin-left:22.5pt'><span
242 style='mso-tab-count:3'>                  </span><span class=string>'+ <span
243 class=GramE>.1d-2</span>'</span></pre><pre style='margin-left:22.5pt'><span
244 style='mso-tab-count:3'>                  </span><span class=string>'.1'</span></pre><pre
245 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
246 class=string>'f.1'</span></pre><pre style='margin-left:22.5pt'><span
247 style='mso-tab-count:3'>                  </span><span class=string>'f -+1.4'</span></pre><pre
248 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
249 class=string>'f.2'</span></pre><pre style='margin-left:22.5pt'><span
250 style='mso-tab-count:3'>                  </span><span class=string>'f.3'</span></pre><pre
251 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
252 class=string>'f.10'</span></pre><pre style='margin-left:22.5pt'><span
253 style='mso-tab-count:3'>                  </span><span class=string>'f.11'</span></pre><pre
254 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
255 class=string>'+<span class=SpellE>inf</span>'</span></pre><pre
256 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
257 class=GramE><span class=string>' -</span></span><span class=SpellE><span
258 class=string>nan</span></span><span class=string>'</span></pre><pre
259 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
260 class=string>'+ <span class=SpellE><span class=GramE>nan</span></span>'</span></pre><pre
261 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
262 class=string>'<span class=SpellE><span class=GramE>nan</span></span>'</span></pre><pre
263 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
264 2'>         </span>strings with many numbers or invalid/ambiguous numbers</span></pre><pre
265 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
266 2'>         </span>sorted in <span class=SpellE><span class=GramE><b
267 style='mso-bidi-font-weight:normal'>ascii</b></span></span><b style='mso-bidi-font-weight:
268 normal'> dictionary order</b></span></pre><pre style='margin-left:22.5pt'><span
269 style='mso-tab-count:3'>                  </span><span class=GramE><span
270 class=string>' <span class=SpellE>nan</span></span></span><span class=string> <span
271 class=SpellE>nan</span>'</span></pre><pre style='margin-left:22.5pt'><span
272 style='mso-tab-count:3'>                  </span><span class=string>'+ .1e-.2'</span></pre><pre
273 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
274 class=string>'-1 2'</span></pre><pre style='margin-left:22.5pt'><span
275 style='mso-tab-count:3'>                  </span><span class=string>'Z12e12ez'</span></pre><pre
276 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
277 class=string>'<span class=SpellE><span class=GramE>inf</span></span> -<span
278 class=SpellE>inf</span>'</span></pre><pre style='margin-left:22.5pt'><span
279 style='mso-tab-count:3'>                  </span><span class=string>'s.3TT.4'</span></pre><pre
280 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
281 class=string>'z12e12ez'</span></pre><pre style='margin-left:22.5pt'><span
282 class=comment>%<span style='mso-tab-count:2'>         </span>strings without numbers</span></pre><pre
283 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
284 2'>         </span>sorted in <span class=SpellE><span class=GramE><b
285 style='mso-bidi-font-weight:normal'>ascii</b></span></span><b style='mso-bidi-font-weight:
286 normal'> dictionary order</b></span></pre><pre style='margin-left:22.5pt'><span
287 style='mso-tab-count:3'>                  </span><span class=string>' . .. '</span></pre><pre
288 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
289 class=string>'.'</span></pre><pre style='margin-left:22.5pt'><span
290 style='mso-tab-count:3'>                  </span><span class=string>'...'</span></pre><pre
291 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
292 class=GramE><span class=string>'.b a.'</span></span></pre><pre
293 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
294 class=string>'<span class=GramE>a</span> string'</span></pre><pre
295 style='margin-left:22.5pt'><span style='mso-tab-count:3'>                  </span><span
296 class=string>'a. .b'</span></pre><pre style='margin-left:22.5pt'><b
297 style='mso-bidi-font-weight:normal'><span style='mso-tab-count:2'>          </span>};<o:p></o:p></b></pre><pre
298 style='margin-left:22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span>... and scramble it...</span></pre><pre
299 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span><span
300 class=GramE>rand(</span><span class=string>'seed'</span>,10);</pre><pre
301 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>d=<span
302 class=GramE>d(</span><span class=SpellE>randperm</span>(<span class=SpellE>numel</span>(d)));</pre><pre
303 style='margin-left:22.5pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:22.5pt'><span
304 class=comment>% - run <b style='mso-bidi-font-weight:normal'>ASORT</b> with<o:p></o:p></span></pre><pre
305 style='margin-left:22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span><b
306 style='mso-bidi-font-weight:normal'>verbose output</b>:<span style='mso-tab-count:
307 2'>              </span>&lt;-v&gt;</span></pre><pre style='margin-left:22.5pt'><span
308 class=comment>%<span style='mso-spacerun:yes'>   </span><span class=GramE><b
309 style='mso-bidi-font-weight:normal'>keep</b></span><b style='mso-bidi-font-weight:
310 normal'> additional results</b>:<span style='mso-tab-count:1'>     </span>&lt;-d&gt;</span></pre><pre
311 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>o=<span
312 class=SpellE><span class=GramE>asort</span></span><span class=GramE>(</span>d,<span
313 class=string>'-v'</span>,<span class=string>'-d'</span>);</pre><pre
314 style='margin-left:22.5pt'><span class=comment>% - or</span></pre><pre
315 style='margin-left:22.5pt'><span class=comment>%<span style='mso-tab-count:
316 2'>         </span>p=<span class=SpellE><span class=GramE>asort</span></span><span
317 class=GramE>(</span>char(d),</span><span class=string>'-v'</span>,<span
318 class=string>'-d'</span>);</pre><pre style='margin-left:7.5pt'><i><span
319 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
320 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>       </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
321 style='color:gray'><span style='mso-spacerun:yes'>    </span>'...'<span style='mso-spacerun:yes'>         </span><span
322 class=SpellE><span class=GramE>'</span></span><span class=GramE> -</span><span
323 class=SpellE>nan</span>'<span style='mso-spacerun:yes'>         </span>'--- NUMERICAL'<span style='mso-spacerun:yes'>        </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
324 style='color:gray'><span style='mso-spacerun:yes'>    </span>'+ .1e-.2'<span style='mso-spacerun:yes'>    </span><span
325 class=GramE>' .</span> .. '<span style='mso-spacerun:yes'>        </span>'-<span
326 class=SpellE><span class=GramE>inf</span></span>'<span style='mso-spacerun:yes'>         </span><span style='mso-spacerun:yes'>        </span>[<span style='mso-spacerun:yes'>             </span>-<span
327 class=SpellE>Inf</span>]<o:p></o:p></span></i></pre><pre><i><span
328 style='color:gray'><span style='mso-spacerun:yes'>    </span>'.1'<span style='mso-spacerun:yes'>          </span>' <span
329 class=SpellE>nan</span> <span class=SpellE>nan</span>'<span style='mso-spacerun:yes'>      </span>'x-3.2e4y'<span style='mso-spacerun:yes'>             </span>[<span style='mso-spacerun:yes'>           </span>-32000]<o:p></o:p></span></i></pre><pre><i><span
330 style='color:gray'><span style='mso-spacerun:yes'>    </span>'.b a.'<span style='mso-spacerun:yes'>       </span>'+ .1d-2'<span style='mso-spacerun:yes'>       </span>'f-1.4'<span style='mso-spacerun:yes'>                </span>[<span style='mso-spacerun:yes'>             </span>-1.4]<o:p></o:p></span></i></pre><pre><i><span
331 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-<span
332 class=SpellE>inf</span>'<span style='mso-spacerun:yes'>        </span>'+ .1e-.2'<span style='mso-spacerun:yes'>      </span>'-.1'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>             </span>-0.1]<o:p></o:p></span></i></pre><pre><i><span
333 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.1'<span style='mso-spacerun:yes'>         </span>'+ <span
334 class=SpellE><span class=GramE>nan</span></span>'<span style='mso-spacerun:yes'>         </span>'+ .1d-2'<span style='mso-spacerun:yes'>              </span>[<span style='mso-spacerun:yes'>            </span>0.001]<o:p></o:p></span></i></pre><pre><i><span
335 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' -</span><span
336 class=SpellE>nan</span>'<span style='mso-spacerun:yes'>       </span>'+<span
337 class=SpellE>inf</span>'<span style='mso-spacerun:yes'>          </span>'.1'<span style='mso-spacerun:yes'>                   </span>[<span style='mso-spacerun:yes'>              </span>0.1]<o:p></o:p></span></i></pre><pre><i><span
338 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-1 2'<span style='mso-spacerun:yes'>        </span>'-.1'<span style='mso-spacerun:yes'>           </span>'f.1'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>                </span>1]<o:p></o:p></span></i></pre><pre><i><span
339 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
340 class=SpellE><span class=GramE>nan</span></span>'<span style='mso-spacerun:yes'>         </span>'-1 2'<span style='mso-spacerun:yes'>          </span>'f -+1.4'<span style='mso-spacerun:yes'>              </span>[<span style='mso-spacerun:yes'>              </span>1.4]<o:p></o:p></span></i></pre><pre><i><span
341 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
342 class=GramE>a</span> string'<span style='mso-spacerun:yes'>    </span>'-<span
343 class=SpellE>inf</span>'<span style='mso-spacerun:yes'>          </span>'f.2'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>                </span>2]<o:p></o:p></span></i></pre><pre><i><span
344 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>'f.3'<span style='mso-spacerun:yes'>         </span>'.'</span><span style='mso-spacerun:yes'>             </span>'f.3'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>                </span>3]<o:p></o:p></span></i></pre><pre><i><span
345 style='color:gray'><span style='mso-spacerun:yes'>    </span>'+ <span
346 class=GramE>.1d-2</span>'<span style='mso-spacerun:yes'>     </span>'...'<span style='mso-spacerun:yes'>           </span>'f.10'<span style='mso-spacerun:yes'>   </span><span style='mso-spacerun:yes'>              </span>[<span style='mso-spacerun:yes'>               </span>10]<o:p></o:p></span></i></pre><pre><i><span
347 style='color:gray'><span style='mso-spacerun:yes'>    </span>'a. .b'<span style='mso-spacerun:yes'>       </span>'.1'<span style='mso-spacerun:yes'>            </span>'f.11'<span style='mso-spacerun:yes'>                 </span>[<span style='mso-spacerun:yes'>     </span><span style='mso-spacerun:yes'>          </span>11]<o:p></o:p></span></i></pre><pre><i><span
348 style='color:gray'><span style='mso-spacerun:yes'>    </span>'s.3TT.4'<span style='mso-spacerun:yes'>     </span>'.b a.'<span style='mso-spacerun:yes'>     </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span>'+<span
349 class=SpellE>inf</span>'<span style='mso-spacerun:yes'>                 </span>[<span style='mso-spacerun:yes'>              </span><span
350 class=SpellE><span class=GramE>Inf</span></span>]<o:p></o:p></span></i></pre><pre><i><span
351 style='color:gray'> <span style='mso-spacerun:yes'>   </span>'+<span
352 class=SpellE>inf</span>'<span style='mso-spacerun:yes'>        </span>'Z12e12ez'<span style='mso-spacerun:yes'>      </span>' -<span
353 class=SpellE>nan</span>'<span style='mso-spacerun:yes'>                </span>[<span style='mso-spacerun:yes'>          </span><span style='mso-spacerun:yes'>    </span></span></i><st1:place><span
354 class=SpellE><i><span style='color:gray'>NaN</span></i></span></st1:place><i><span
355 style='color:gray'>]<o:p></o:p></span></i></pre><pre><i><span style='color:
356 gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
357 class=SpellE>nan</span></span> <span class=SpellE>nan</span>'<span style='mso-spacerun:yes'>    </span>'a string'<span style='mso-spacerun:yes'>      </span>'+ <span
358 class=SpellE>nan</span>'<span style='mso-spacerun:yes'>                </span>[<span style='mso-spacerun:yes'>              </span></span></i><st1:place><span
359 class=SpellE><i><span style='color:gray'>NaN</span></i></span></st1:place><i><span
360 style='color:gray'>]<o:p></o:p></span></i></pre><pre><i><span style='color:
361 gray'><span style='mso-spacerun:yes'>    </span>'<span class=GramE>f-1.4</span>'<span style='mso-spacerun:yes'>       </span>'a. .<span
362 class=GramE>b</span>'<span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>    </span>'<span
363 class=SpellE>nan</span>'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>              </span></span></i><st1:place><span
364 class=SpellE><i><span style='color:gray'>NaN</span></i></span></st1:place><i><span
365 style='color:gray'>]<o:p></o:p></span></i></pre><pre><i><span style='color:
366 gray'><span style='mso-spacerun:yes'>    </span>'x-3.2e4y'<span style='mso-spacerun:yes'>    </span>'f -+1.4'<span style='mso-spacerun:yes'>     </span><span style='mso-spacerun:yes'>  </span>'--- ASCII NUMBERS'<span style='mso-spacerun:yes'>    </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
367 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
368 class=SpellE><span class=GramE>inf</span></span> -<span class=SpellE>inf</span>'<span style='mso-spacerun:yes'>  </span><span style='mso-spacerun:yes'>  </span>'f-1.4'<span style='mso-spacerun:yes'>         </span>' <span
369 class=SpellE>nan</span> <span class=SpellE>nan</span>'<span style='mso-spacerun:yes'>             </span>' <span
370 class=SpellE>nan</span> <span class=SpellE>nan</span>'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
371 style='color:gray'><span style='mso-spacerun:yes'>    </span>'+ <span
372 class=SpellE><span class=GramE>nan</span></span>'<span style='mso-spacerun:yes'>       </span>'f.1'<span style='mso-spacerun:yes'>           </span>'+ .1e-.2'<span style='mso-spacerun:yes'>             </span>'+ .1e-.2'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
373 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.2'<span style='mso-spacerun:yes'>         </span>'f.10'<span style='mso-spacerun:yes'>          </span>'-1 2'<span style='mso-spacerun:yes'>                 </span>'-1 2'<span style='mso-spacerun:yes'>             </span><o:p></o:p></span></i></pre><pre><i><span
374 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.11'<span style='mso-spacerun:yes'>  </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
375 class=SpellE>'f.11'</span><span style='mso-spacerun:yes'>          </span>'Z12e12ez'<span style='mso-spacerun:yes'>             </span><span
376 class=SpellE>'Z12e12ez'</span><span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
377 style='color:gray'><span style='mso-spacerun:yes'>    </span>'Z12e12ez'<span style='mso-spacerun:yes'>    </span>'f.2'<span style='mso-spacerun:yes'>      </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>    </span>'<span
378 class=SpellE>inf</span> -<span class=SpellE>inf</span>'<span style='mso-spacerun:yes'>             </span>'<span
379 class=SpellE>inf</span> -<span class=SpellE>inf</span>'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
380 style='color:gray'><span style='mso-spacerun:yes'>    </span>'z12e12ez'<span style='mso-spacerun:yes'>    </span>'f.3'<span style='mso-spacerun:yes'>           </span>'s.3TT.4'<span style='mso-spacerun:yes'>              </span><span
381 class=SpellE>'s.3TT.4'</span><span style='mso-spacerun:yes'>          </span><o:p></o:p></span></i></pre><pre><i><span
382 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f -+1.4'<span style='mso-spacerun:yes'>     </span>'<span
383 class=SpellE>inf</span> -<span class=SpellE>inf</span>'<span style='mso-spacerun:yes'>      </span>'z12e12ez'<span style='mso-spacerun:yes'>             </span><span
384 class=SpellE>'z12e12ez'</span><span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
385 style='color:gray'><span style='mso-spacerun:yes'>    </span>' . .. '<span style='mso-spacerun:yes'>      </span>'<span
386 class=SpellE><span class=GramE>nan</span></span>'<span style='mso-spacerun:yes'>           </span>'--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
387 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.10'<span style='mso-spacerun:yes'>        </span>'s.3TT.4'<span style='mso-spacerun:yes'>       </span><span
388 class=GramE>' .</span> .. '<span style='mso-spacerun:yes'>         </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
389 class=SpellE>'</span> . .. '<span style='mso-spacerun:yes'>           </span><o:p></o:p></span></i></pre><pre><i><span
390 style='color:gray'><span style='mso-spacerun:yes'>    </span>'.'<span style='mso-spacerun:yes'>           </span><span
391 class=GramE>'x-3.2e4y'<span style='mso-spacerun:yes'>      </span>'.'</span><span style='mso-spacerun:yes'>                    </span><span
392 class=SpellE>'.'</span><span style='mso-spacerun:yes'>                </span><o:p></o:p></span></i></pre><pre><i><span
393 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-.1'<span style='mso-spacerun:yes'>     </span><span style='mso-spacerun:yes'>    </span>'z12e12ez'<span style='mso-spacerun:yes'>      </span>'...'<span style='mso-spacerun:yes'>                  </span><span
394 class=SpellE>'</span>...'<span style='mso-spacerun:yes'>              </span><o:p></o:p></span></i></pre><pre><i><span
395 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' <span
396 class=SpellE>'</span></span><span style='mso-spacerun:yes'>           </span><span
397 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'.b a.'<span style='mso-spacerun:yes'>                </span>'.b a.'<span style='mso-spacerun:yes'>            </span><o:p></o:p></span></i></pre><pre><i><span
398 style='color:gray'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span><span
399 class=GramE>' <span class=SpellE>'</span></span><span style='mso-spacerun:yes'>           </span><span
400 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'a string'<span style='mso-spacerun:yes'>             </span>'a string'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
401 style='color:gray'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span><span
402 class=GramE>' <span class=SpellE>'</span></span><span style='mso-spacerun:yes'>           </span><span
403 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'a. .b'<span style='mso-spacerun:yes'>                </span>'a. .<span
404 class=GramE>b</span>'<span style='mso-spacerun:yes'>            </span><o:p></o:p></span></i></pre><pre><i><span
405 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
406 22.5pt'><span class=comment>% - show results</span></pre><pre style='margin-left:
407 22.5pt'><span style='mso-tab-count:2'>          </span><span class=GramE>o</span></pre><pre><i><span
408 style='color:gray'>o = <o:p></o:p></span></i></pre><pre><i><span
409 style='color:gray'><span style='mso-spacerun:yes'>          </span><span
410 class=GramE>magic</span>: 'ASORT'<o:p></o:p></span></i></pre><pre><i><span
411 style='color:gray'><span style='mso-spacerun:yes'>      </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
412 class=SpellE><span class=GramE>ver</span></span>: '</span></i><st1:date
413 Year="2005" Day="30" Month="3"><i><span style='color:gray'>30-Mar-2005</span></i></st1:date><i><span
414 style='color:gray'> </span></i><st1:time Minute="57" Hour="11"><i><span
415 style='color:gray'>11:57:07</span></i></st1:time><i><span style='color:gray'>'<o:p></o:p></span></i></pre><pre><i><span
416 style='color:gray'><span style='mso-spacerun:yes'>           </span>time: '30-Mar-2005 11:57:17'<o:p></o:p></span></i></pre><pre><i><span
417 style='color:gray'><span style='mso-spacerun:yes'>        </span><span
418 class=GramE>runtime</span>: 0.047<o:p></o:p></span></i></pre><pre><i><span
419 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
420 class=SpellE>input_class</span>: 'cell'<o:p></o:p></span></i></pre><pre><i><span
421 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
422 class=SpellE>input_msize</span>: [29 1]<o:p></o:p></span></i></pre><pre><i><span
423 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
424 class=SpellE>input_bytes</span>: 2038<o:p></o:p></span></i></pre><pre><i><span
425 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
426 class=SpellE>strng_class</span>: 'char'<o:p></o:p></span></i></pre><pre><i><span
427 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
428 class=SpellE>strng_msize</span>: [29 8]<o:p></o:p></span></i></pre><pre><i><span
429 style='color:gray'><span style='mso-spacerun:yes'>    </span><span
430 class=SpellE>strng_bytes</span>: 464<o:p></o:p></span></i></pre><pre><i><span
431 style='color:gray'><span style='mso-spacerun:yes'>            </span><span
432 class=SpellE><span class=GramE>anr</span></span>: {16x1 cell}<o:p></o:p></span></i></pre><pre><i><span
433 style='color:gray'><span style='mso-spacerun:yes'>      </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
434 class=SpellE><span class=GramE>snr</span></span>: {7x1 cell}<o:p></o:p></span></i></pre><pre><i><span
435 style='color:gray'><span style='mso-spacerun:yes'>      </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
436 class=SpellE><span class=GramE>str</span></span>: {6x1 cell}<o:p></o:p></span></i></pre><pre><i><span
437 style='color:gray'><span style='mso-spacerun:yes'>              </span><span
438 class=GramE>c</span>: [29x12 char]<o:p></o:p></span></i></pre><pre><i><span
439 style='color:gray'><span style='mso-spacerun:yes'>              </span><span
440 class=GramE>t</span>: [29x12 logical]<o:p></o:p></span></i></pre><pre><i><span
441 style='color:gray'><span style='mso-spacerun:yes'>              </span><span
442 class=GramE>n</span>: [16x12 char]<o:p></o:p></span></i></pre><pre><i><span
443 style='color:gray'><span style='mso-spacerun:yes'>  </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>           </span><span
444 class=GramE>d</span>: [16x1 double]<o:p></o:p></span></i></pre><pre><i><span
445 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
446 22.5pt'><span style='mso-tab-count:2'>          </span><span class=SpellE>o.anr</span></pre><pre><span
447 class=SpellE><span class=GramE><i><span style='color:gray'>ans</span></i></span></span><i><span
448 style='color:gray'> = <o:p></o:p></span></i></pre><pre><i><span
449 style='color:gray'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span>'-<span
450 class=SpellE><span class=GramE>inf</span></span>'<o:p></o:p></span></i></pre><pre><i><span
451 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
452 class=GramE>x-3.2e4y</span>'<o:p></o:p></span></i></pre><pre><i><span
453 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
454 class=GramE>f-1.4</span>'<o:p></o:p></span></i></pre><pre><i><span
455 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-.1'<o:p></o:p></span></i></pre><pre><i><span
456 style='color:gray'><span style='mso-spacerun:yes'>    </span>'+ <span
457 class=GramE>.1d-2</span>'<o:p></o:p></span></i></pre><pre><i><span
458 style='color:gray'><span style='mso-spacerun:yes'>    </span>'.1'<o:p></o:p></span></i></pre><pre><i><span
459 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.1'<o:p></o:p></span></i></pre><pre><i><span
460 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f -+1.4'<o:p></o:p></span></i></pre><pre><i><span
461 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.2'<o:p></o:p></span></i></pre><pre><i><span
462 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.3'<o:p></o:p></span></i></pre><pre><i><span
463 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.10'<o:p></o:p></span></i></pre><pre><i><span
464 style='color:gray'><span style='mso-spacerun:yes'>    </span>'f.11'<o:p></o:p></span></i></pre><pre><i><span
465 style='color:gray'> <span style='mso-spacerun:yes'>   </span>'+<span
466 class=SpellE>inf</span>'<o:p></o:p></span></i></pre><pre><i><span
467 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' -</span><span
468 class=SpellE>nan</span>'<o:p></o:p></span></i></pre><pre><i><span
469 style='color:gray'> <span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>  </span>'+ <span
470 class=SpellE><span class=GramE>nan</span></span>'<o:p></o:p></span></i></pre><pre><i><span
471 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
472 class=SpellE><span class=GramE>nan</span></span>'<o:p></o:p></span></i></pre><pre><i><span
473 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
474 22.5pt'><span class=comment>% - run <b style='mso-bidi-font-weight:normal'>ASORT</b> with <b
475 style='mso-bidi-font-weight:normal'>no-space</b>/<b style='mso-bidi-font-weight:
476 normal'>template</b> options</span></pre><pre style='margin-left:22.5pt'><span
477 class=comment>%<span style='mso-spacerun:yes'>   </span><span class=GramE>NOTE</span> the impact of -w/-t order!</span></pre><pre
478 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>s<span
479 class=GramE>={</span><span class=string>'ff - 1'</span>,<span class=string>'ff + 1'</span>,<span
480 class=string>'- 12'</span>};</pre><pre><i><span style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre
481 style='margin-left:22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span>RAW</span></pre><pre
482 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>o=<span
483 class=SpellE>asort</span>(s,<span class=string>'-v'</span>);</pre><pre><i><span
484 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
485 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>     </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
486 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
487 class=GramE>ff</span> - 1'<span style='mso-spacerun:yes'>    </span>'- 12'<span style='mso-spacerun:yes'>          </span>'--- NUMERICAL'<span style='mso-spacerun:yes'>        </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
488 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
489 class=GramE>ff</span> + 1'<span style='mso-spacerun:yes'>    </span>'ff + 1'<span style='mso-spacerun:yes'>        </span>'ff + 1'<span style='mso-spacerun:yes'>               </span>[<span style='mso-spacerun:yes'>                </span>1]<o:p></o:p></span></i></pre><pre><i><span
490 style='color:gray'><span style='mso-spacerun:yes'>    </span>'- 12'<span style='mso-spacerun:yes'>      </span>'ff - 1'<span style='mso-spacerun:yes'>        </span>'ff - 1'<span style='mso-spacerun:yes'>               </span>[<span style='mso-spacerun:yes'>                </span>1]<o:p></o:p></span></i></pre><pre><i><span
491 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
492 class=SpellE>'</span></span><span style='mso-spacerun:yes'>         </span><span
493 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
494 class=SpellE>'</span>- 12'<span style='mso-spacerun:yes'>                 </span>[<span style='mso-spacerun:yes'>               </span>12]<o:p></o:p></span></i></pre><pre><i><span
495 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
496 class=SpellE>'</span></span><span style='mso-spacerun:yes'>         </span><span
497 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'>   </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
498 class=SpellE>'</span>--- ASCII NUMBERS'<span style='mso-spacerun:yes'>    </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
499 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
500 class=SpellE>'</span></span><span style='mso-spacerun:yes'>         </span><span
501 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
502 class=SpellE>'</span>--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
503 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
504 22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span><span
505 class=GramE>remove</span> <span class=SpellE><b style='mso-bidi-font-weight:
506 normal'>SPACE</b>s</span></span></pre><pre style='margin-left:22.5pt'><span
507 style='mso-tab-count:2'>          </span>o=<span class=SpellE>asort</span>(s,<span
508 class=string>'-v'</span>,<span class=string>'-w'</span>);</pre><pre><i><span
509 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
510 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>    </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
511 style='color:gray'><span style='mso-spacerun:yes'>    </span>'ff-1' <span style='mso-spacerun:yes'>    </span>'-12'<span style='mso-spacerun:yes'>           </span>'--- NUMERICAL'<span style='mso-spacerun:yes'>        </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
512 style='color:gray'><span style='mso-spacerun:yes'>    </span>'<span
513 class=GramE>ff+</span>1'<span style='mso-spacerun:yes'>     </span><span
514 class=SpellE>'ff+1'</span><span style='mso-spacerun:yes'>          </span>'-12'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>              </span>-12]<o:p></o:p></span></i></pre><pre><i><span
515 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-12'<span style='mso-spacerun:yes'>      </span>'ff-1'<span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
516 class=SpellE>'ff-1'</span><span style='mso-spacerun:yes'>                 </span>[<span style='mso-spacerun:yes'>               </span>-1]<o:p></o:p></span></i></pre><pre><i><span
517 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
518 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
519 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'ff+1'<span style='mso-spacerun:yes'>        </span><span style='mso-spacerun:yes'>         </span>[<span style='mso-spacerun:yes'>                </span>1]<o:p></o:p></span></i></pre><pre><i><span
520 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
521 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
522 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
523 class=SpellE>'</span>--- ASCII NUMBERS'<span style='mso-spacerun:yes'>    </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
524 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
525 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
526 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
527 class=SpellE>'</span>--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
528 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
529 22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span><span
530 class=GramE>remove</span> <b style='mso-bidi-font-weight:normal'>TEMPLATE</b>(s)</span></pre><pre
531 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>o=<span
532 class=SpellE>asort</span>(s,<span class=string>'-v'</span>,<span class=string>'-t'</span><span
533 class=GramE>,{</span><span class=string>'ff'</span>,<span class=string>'1'</span>});</pre><pre><i><span
534 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
535 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>    </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
536 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' -</span> ' <span style='mso-spacerun:yes'>     </span><span
537 class=SpellE>'</span> + '<span style='mso-spacerun:yes'>           </span><span
538 class=SpellE>'</span>--- NUMERICAL'<span style='mso-spacerun:yes'>        </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
539 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' +</span> ' <span style='mso-spacerun:yes'>     </span><span
540 class=SpellE>'</span> - '<span style='mso-spacerun:yes'>           </span><span
541 class=SpellE>'</span>- 2'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>                </span>2]<o:p></o:p></span></i></pre><pre><i><span
542 style='color:gray'><span style='mso-spacerun:yes'>    </span>'- 2'<span style='mso-spacerun:yes'>      </span>'- 2'<span style='mso-spacerun:yes'>           </span>'--- ASCII NUMBERS'<span style='mso-spacerun:yes'>   </span><span style='mso-spacerun:yes'> </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
543 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
544 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
545 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
546 class=SpellE>'</span>--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
547 style='color:gray'> <span style='mso-spacerun:yes'>   </span>' <span
548 class=SpellE>'</span><span style='mso-spacerun:yes'>        </span><span
549 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
550 class=SpellE>'</span> + '<span style='mso-spacerun:yes'>                  </span><span
551 class=SpellE>'</span> + '<span style='mso-spacerun:yes'>              </span><o:p></o:p></span></i></pre><pre><i><span
552 style='color:gray'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span>' <span
553 class=SpellE>'</span><span style='mso-spacerun:yes'>        </span><span
554 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
555 class=SpellE>'</span> - '<span style='mso-spacerun:yes'>                  </span><span
556 class=SpellE>'</span> - '<span style='mso-spacerun:yes'>              </span><o:p></o:p></span></i></pre><pre><i><span
557 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
558 22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span><span
559 class=GramE>remove</span> <b style='mso-bidi-font-weight:normal'>TEMPLATE</b>(s) than <span
560 class=SpellE><b style='mso-bidi-font-weight:normal'>SPACE</b>s</span></span></pre><pre
561 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>o=<span
562 class=SpellE>asort</span>(s,<span class=string>'-v'</span>,<span class=string>'-t'</span>,<span
563 class=string>'1'</span>,<span class=string>'-w'</span>);</pre><pre><i><span
564 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
565 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>    </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
566 style='color:gray'><span style='mso-spacerun:yes'>    </span>'ff-'<span style='mso-spacerun:yes'>      </span>'-2'<span style='mso-spacerun:yes'>            </span>'--- NUMERICAL'<span style='mso-spacerun:yes'>        </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
567 style='color:gray'><span style='mso-spacerun:yes'>    </span>'ff+' <span style='mso-spacerun:yes'>     </span><span
568 class=SpellE>'ff+'</span><span style='mso-spacerun:yes'>           </span>'-2'<span style='mso-spacerun:yes'>                </span><span style='mso-spacerun:yes'>   </span>[<span style='mso-spacerun:yes'>               </span>-2]<o:p></o:p></span></i></pre><pre><i><span
569 style='color:gray'><span style='mso-spacerun:yes'>    </span>'-2'<span style='mso-spacerun:yes'>       </span>'ff-'<span style='mso-spacerun:yes'>           </span>'--- ASCII NUMBERS'<span style='mso-spacerun:yes'>    </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
570 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
571 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
572 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
573 class=SpellE>'</span>--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
574 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
575 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
576 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'ff+'<span style='mso-spacerun:yes'>                  </span><span
577 class=SpellE>'ff+'</span><span style='mso-spacerun:yes'>              </span><o:p></o:p></span></i></pre><pre><i><span
578 style='color:gray'><span style='mso-spacerun:yes'>    </span><span class=GramE>' <span
579 class=SpellE>'</span></span><span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'>    </span><span
580 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'ff-'<span style='mso-spacerun:yes'>                  </span><span
581 class=SpellE>'ff-'</span><span style='mso-spacerun:yes'>              </span><o:p></o:p></span></i></pre><pre><i><span
582 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre style='margin-left:
583 22.5pt'><span class=comment>%<span style='mso-spacerun:yes'>   </span><span
584 class=GramE>remove</span> <span class=SpellE><b style='mso-bidi-font-weight:
585 normal'>SPACE</b>s</span> than <b style='mso-bidi-font-weight:normal'>TEMPLATE</b>(s)</span></pre><pre
586 style='margin-left:22.5pt'><span style='mso-tab-count:2'>          </span>o=<span
587 class=SpellE>asort</span>(s,<span class=string>'-v'</span>,<span class=string>'-w'</span>,<span
588 class=string>'-t'</span>,<span class=string>'1'</span>);</pre><pre><i><span
589 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre><pre><i><span
590 style='color:gray'><span style='mso-spacerun:yes'>    </span>'INPUT'<span style='mso-spacerun:yes'>    </span>'ASCII SORT'<span style='mso-spacerun:yes'>    </span>'NUM SORT'<span style='mso-spacerun:yes'>             </span>'NUM READ'<span style='mso-spacerun:yes'>         </span><o:p></o:p></span></i></pre><pre><i><span
591 style='color:gray'><span style='mso-spacerun:yes'>    </span>'ff- '<span style='mso-spacerun:yes'>     </span><span
592 class=SpellE>'</span>- 2'<span style='mso-spacerun:yes'>           </span>'--- NUMERICAL'<span style='mso-spacerun:yes'>   </span><span style='mso-spacerun:yes'>     </span>'--- NUMBERS'<span style='mso-spacerun:yes'>      </span><o:p></o:p></span></i></pre><pre><i><span
593 style='color:gray'><span style='mso-spacerun:yes'>    </span>'ff+ '<span style='mso-spacerun:yes'>     </span>'ff+ '<span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
594 class=SpellE>'</span>- 2'<span style='mso-spacerun:yes'>                  </span>[<span style='mso-spacerun:yes'>                </span>2]<o:p></o:p></span></i></pre><pre><i><span
595 style='color:gray'><span style='mso-spacerun:yes'>    </span>'- 2'<span style='mso-spacerun:yes'>      </span>'ff- '<span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>     </span><span
596 class=SpellE>'</span>--- ASCII NUMBERS'<span style='mso-spacerun:yes'>    </span>'--- ASCII NUMBERS'<o:p></o:p></span></i></pre><pre><i><span
597 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
598 class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
599 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span><span
600 class=SpellE>'</span>--- ASCII STRINGS'<span style='mso-spacerun:yes'>    </span>'--- ASCII STRINGS'<o:p></o:p></span></i></pre><pre><i><span
601 style='color:gray'> <span style='mso-spacerun:yes'>   </span><span class=GramE>' <span
602 class=SpellE>'</span></span><span style='mso-spacerun:yes'>  </span><span style='mso-spacerun:yes'>      </span><span
603 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'ff+ '<span style='mso-spacerun:yes'>                 </span>'ff+ '<span style='mso-spacerun:yes'>             </span><o:p></o:p></span></i></pre><pre><i><span
604 style='color:gray'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'>   </span><span
605 class=GramE>' <span class=SpellE>'</span></span><span style='mso-spacerun:yes'>        </span><span
606 class=SpellE>'</span> <span class=SpellE>'</span><span style='mso-spacerun:yes'>             </span>'ff- '<span style='mso-spacerun:yes'>                 </span>'ff- '<span style='mso-spacerun:yes'>             </span><o:p></o:p></span></i></pre><pre><i><span
607 style='color:gray'><o:p>&nbsp;</o:p></span></i></pre>
608
609 <p class=footer style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><br>
610 Published with MATLAB® 7.0.4<o:p></o:p></p>
611
612 </div>
613
614 <!--
615 ##### SOURCE BEGIN #####
616 % ASORT
617 % a pedestrian NUMERICAL SORTER of ALPHANUMERIC data
618
619 % - create some data
620 d = {
621 % strings with one valid alphanumeric number
622 % sorted numerically
623 '-inf'
624 'x-3.2e4y'
625 'f-1.4'
626 '-.1'
627 '+ .1d-2'
628 '.1'
629 'f.1'
630 'f -+1.4'
631 'f.2'
632 'f.3'
633 'f.10'
634 'f.11'
635 '+inf'
636 ' -nan'
637 '+ nan'
638 'nan'
639 % strings with many numbers or invalid/ambiguous numbers
640 % sorted in ascii dictionary order
641 ' nan nan'
642 '+ .1e-.2'
643 '-1 2'
644 'Z12e12ez'
645 'inf -inf'
646 's.3TT.4'
647 'z12e12ez'
648 % strings without numbers
649 % sorted in ascii dictionary order
650 ' . .. '
651 '.'
652 '...'
653 '.b a.'
654 'a string'
655 'a. .b'
656 };
657 % ... and scramble it...
658 rand('seed',10);
659 d=d(randperm(numel(d)));
660
661 % - run ASORT with verbose output
662 % and keep additional results
663 o=asort(d,'-v','-d');
664 % - or
665 % p=asort(char(d));
666
667 % - show results
668 o
669 o.anr
670
671 % - run ASORT with no-space/template options
672 % NOTE the impact of -t/-w order!
673 s={'ff - 1','ff + 1','- 12'};
674 % RAW
675 o=asort(s,'-v');
676 % remove SPACEs
677 o=asort(s,'-v','-w');
678 % remove TEMPLATE(s)
679 o=asort(s,'-v','-t',{'ff','1'});
680 % remove TEMPLATE(s) than SPACEs
681 o=asort(s,'-v','-t','1','-w');
682 % remove SPACEs than TEMPLATE(s)
683 o=asort(s,'-v','-w','-t','1');
684
685
686 ##### SOURCE END #####
687 -->
688 </body>
689
690 </html>