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_assistant_output/Matrix/extrac2.html

    r338 r402  
    6666 By default, IDL can make extractions of subdomain: 
    6767 
    68       IDL> a=indgen(5,5) 
    69       IDL> print, a 
     68   IDL> a=indgen(5,5) 
     69   IDL> print, a 
    7070             0       1       2       3       4 
    7171             5       6       7       8       9 
     
    7373            15      16      17      18      19 
    7474            20      21      22      23      24 
    75       IDL> print, a[[0,2],3] 
     75   IDL> print, a[[0,2],3] 
    7676            15      17 
    77       IDL> print, a[[0,2],*] 
     77   IDL> print, a[[0,2],*] 
    7878             0       2 
    7979             5       7 
     
    8282            20      22 
    8383 but 
    84       IDL> print, a[[0,2],[3,4]] 
     84   IDL> print, a[[0,2],[3,4]] 
    8585            15      22 
    8686 while 
    87       IDL> print, extrac2(a,[0,2],[3,4]) 
     87   IDL> print, extrac2(a,[0,2],[3,4]) 
    8888            15      17 
    8989            20      22 
     
    105105 
    106106    <h3>Return value</h3> 
    107  a matrix 1,2,3 or 4d extract from input array 
     107 a matrix 1d, 2d, 3d or 4d extract from input array 
    108108 -1 in case of mistake 
    109109 
     
    126126 
    127127     
    128  a 1,2,3 or 4 dim input array 
     128 a 1d, 2d, 3d or 4d input array 
    129129 
    130130     
     
    144144     
    145145 can have 2 forms: 
    146  1)a vector containing indexes of lines we want to keep 
    147  2)the string '*' if we want to keep all lines. 
     146 
     147  1) a vector containing indexes of lines we want to keep 
     148  2) the string '*' if we want to keep all lines. 
    148149 
    149150     
     
    204205 
    205206    <h3>Examples</h3><pre> 
    206  I have a dim 2 matrix named A. I want extract a small intersection 
    207  matrix 2d of the line 2,3 and 7 and of the column 0 and 1: 
    208  
    209  IDL> res=extrac2(A,[2,3,7],[0,1]) 
     207 I have a 2d matrix named A. I want extract a small intersection 
     208 matrix 2d of the line 2, 3 and 7 and of the column 0 and 1: 
     209 
     210   IDL> res=extrac2(A,[2,3,7],[0,1]) 
    210211 
    211212 other ex: 
    212  IDL> print, a 
     213   IDL> a=[['a','b','c'],['d','e','f'],['g','h','i']] 
     214   IDL> print, a 
    213215 a b c 
    214216 d e f 
    215217 g h i 
    216  IDL> print, extrac2(a,[0,2],[0,2]) 
     218   IDL> print, extrac2(a,[0,2],[0,2]) 
    217219 a c 
    218220 g i 
     
    221223     
    222224    <h4>Version</h4> 
    223  $Id: extrac2.pro 325 2007-12-06 10:04:53Z pinsard $ 
     225 $Id: extrac2.pro 373 2008-08-08 14:11:31Z pinsard $ 
    224226 
    225227    <h4>History</h4> 
    226228 Sebastien Masson (smasson@lodyc.jussieu.fr) 
    227                       12/1/1999 
    228                       29/4/1999: correction of a bug and complement of the heading 
     229  - 12/1/1999 
     230  - 29/4/1999: correction of a bug and complement of the heading 
    229231 
    230232     
Note: See TracChangeset for help on using the changeset viewer.