<A NAME=swap_entries>
<TITLE>swap_entries</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>SWAP_ENTRIES</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
<P>
<P>
<P> <H3>
syntax: </H3>
<em>swap_entries</em>(<matrix>,{<r1>,<c1>},{<r2>,
<c2>})
<P>
<P>
<P>
<matrix> :- a
<A HREF=r37_0345.html>matrix</A>.
<P>
<P>
<r1>,<c1>,<r2>,<c2> :- positive integers.
<P>
<P>
<em>swap_entries</em>swaps <matrix>(<r1>,<c1>) with
<matrix>(<r2>,<c2>).
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
swap_entries(A,{1,1},{3,3});
[9 2 3]
[ ]
[4 5 6]
[ ]
[7 8 1]
</TT></PRE><P>Related functions:
<A HREF=r37_0617.html>swap_columns</A>,
<A HREF=r37_0619.html>swap_rows</A>.
<P>
<P>