<A NAME=get_columns>
<TITLE>get_columns</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>GET_COLUMNS</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
Get columns, get rows:
<P>
<P>
<P> <H3>
syntax: </H3>
<em>get_columns</em>(<matrix>,<column\_list>)
<P>
<P>
<P>
<matrix> :- a
<A HREF=r37_0345.html>matrix</A>.
<P>
<P>
<c> :- either a positive integer or a list of positive
integers.
<P>
<P>
<em>get_columns</em>removes the columns of <matrix> specified in
<column\_list> and returns them as a list of column matrices.
<P>
<P>
<em>get_rows</em>performs the same task on the rows of <matrix>.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
get_columns(A,{1,3});
{
[1]
[ ]
[4]
[ ]
[7]
,
[3]
[ ]
[6]
[ ]
[9]
}
get_rows(A,2);
{
[4 5 6]
}
</TT></PRE><P>Related functions:
<A HREF=r37_0576.html>augment_columns</A>,
<A HREF=r37_0614.html>stack_rows</A>,
<A HREF=r37_0615.html>sub_matrix</A>.
<P>
<P>