remove_columns INDEX

REMOVE_COLUMNS _ _ _ _ _ _ _ _ _ _ _ _ operator

Remove columns, remove rows:

syntax:

remove_columns(<matrix>,<column\_list>)

<matrix> :- a matrix. <column\_list> :- either a positive integer or a list of positive integers.

remove_columnsremoves the columns specified in <column\_list> from <matrix>.

remove_rowsperforms the same task on the rows of <matrix>.

examples:

 

remove_columns(A,2); 

  [1  3]
  [    ]
  [4  6]
  [    ]
  [7  9]



remove_rows(A,{1,3}); 

  [4  5  6]

Related functions: minor.