Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_html_output/Matrix/extrac2.html

    r338 r402  
    9292 By default, IDL can make extractions of subdomain: 
    9393 
    94       IDL> a=indgen(5,5) 
    95       IDL> print, a 
     94   IDL> a=indgen(5,5) 
     95   IDL> print, a 
    9696             0       1       2       3       4 
    9797             5       6       7       8       9 
     
    9999            15      16      17      18      19 
    100100            20      21      22      23      24 
    101       IDL> print, a[[0,2],3] 
     101   IDL> print, a[[0,2],3] 
    102102            15      17 
    103       IDL> print, a[[0,2],*] 
     103   IDL> print, a[[0,2],*] 
    104104             0       2 
    105105             5       7 
     
    108108            20      22 
    109109 but 
    110       IDL> print, a[[0,2],[3,4]] 
     110   IDL> print, a[[0,2],[3,4]] 
    111111            15      22 
    112112 while 
    113       IDL> print, extrac2(a,[0,2],[3,4]) 
     113   IDL> print, extrac2(a,[0,2],[3,4]) 
    114114            15      17 
    115115            20      22 
     
    140140 
    141141          <h3>Return value</h3><div class="preformat"> 
    142  a matrix 1,2,3 or 4d extract from input array 
     142 a matrix 1d, 2d, 3d or 4d extract from input array 
    143143 -1 in case of mistake 
    144144</div> 
     
    160160         
    161161          <div class="comments"> 
    162  a 1,2,3 or 4 dim input array 
     162 a 1d, 2d, 3d or 4d input array 
    163163</div> 
    164164             
     
    176176          <div class="comments"> 
    177177 can have 2 forms: 
    178  1)a vector containing indexes of lines we want to keep 
    179  2)the string '*' if we want to keep all lines. 
     178 
     179  1) a vector containing indexes of lines we want to keep 
     180  2) the string '*' if we want to keep all lines. 
    180181</div> 
    181182             
     
    231232 
    232233          <h3>Examples</h3><div class="preformat"> 
    233  I have a dim 2 matrix named A. I want extract a small intersection 
    234  matrix 2d of the line 2,3 and 7 and of the column 0 and 1: 
    235  
    236  IDL> res=extrac2(A,[2,3,7],[0,1]) 
     234 I have a 2d matrix named A. I want extract a small intersection 
     235 matrix 2d of the line 2, 3 and 7 and of the column 0 and 1: 
     236 
     237   IDL> res=extrac2(A,[2,3,7],[0,1]) 
    237238 
    238239 other ex: 
    239  IDL> print, a 
     240   IDL> a=[['a','b','c'],['d','e','f'],['g','h','i']] 
     241   IDL> print, a 
    240242 a b c 
    241243 d e f 
    242244 g h i 
    243  IDL> print, extrac2(a,[0,2],[0,2]) 
     245   IDL> print, extrac2(a,[0,2],[0,2]) 
    244246 a c 
    245247 g i 
     
    248250           
    249251          <h4>Version</h4><div class="preformat"> 
    250  $Id: extrac2.pro 325 2007-12-06 10:04:53Z pinsard $ 
     252 $Id: extrac2.pro 373 2008-08-08 14:11:31Z pinsard $ 
    251253</div> 
    252254          <h4>History</h4><div class="preformat"> 
    253255 Sebastien Masson (smasson@lodyc.jussieu.fr) 
    254                       12/1/1999 
    255                       29/4/1999: correction of a bug and complement of the heading 
     256  - 12/1/1999 
     257  - 29/4/1999: correction of a bug and complement of the heading 
    256258</div> 
    257259           
Note: See TracChangeset for help on using the changeset viewer.