extend INDEX

EXTEND _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

extend(<matrix>,<r>,<c>,<expr>)

<matrix> :- a matrix.

<r>,<c> :- positive integers.

<expr> :- algebraic expression or symbol.

extendreturns a copy of <matrix> that has been extended by <r> rows and <c> columns. The new entries are made equal to <expr>.

examples:



extend(A,1,2,x); 

  [1  2  3  x  x]
  [             ]
  [4  5  6  x  x]
  [             ]
  [7  8  9  x  x]
  [             ]
  [x  x  x  x  x]

Related functions: copy_into, matrix_augment, matrix_stack, remove_columns, remove_rows.