COPY

conditional_copy

  Syntax: COPY xin1 { xin2 ... } xout1 { xout2 ... } IFF expression

 If an expression is used, all the input vectors must be the same length
 and this length must be the same as the length of the expression. If an
 expression is entered, index ranges on the vectors are not allowed, and
 xinI[j] is copied into xoutI if and only if the j'th element of the
 expression is true, that is, non-zero.   The elements of xinI are
 copied in order into xoutI, that is, if the expression dictates that N
 elements of xinI are to be copied into xoutI then these will become the
 first N elements of xoutI.

Additional Information on:

  • INDEX
  • unconditional_copy

     Syntax: COPY xin1 { xin2 ... } xout1 { xout2 ... }
    
     If no expression is entered, then index ranges may be used on the input
     and/or the output vectors. In some cases, the copy command is
     equivalent to an assignment. For example, COPY XX[10:1:-2] X[1:10:2] is
     equivalent to X[1:10:2]=XX[10:1:-2].
    

    APPEND

     If the \APPEND qualifier is used, the copied elements of xinI are
     appended onto the end of xoutI. If xoutI does not exist, COPY\APPEND
     is the same as COPY.