Question: How do i use swaprow in a for loop?

Hi, I am trying to use swaprow in a loop, but it is not working, could someone please point out what i am doing wrong please?

aFront:=RandomMatrix(9):

with(linalg):
for m from 1 to 3 do
Quad2:=swaprow(aFront,m,m+2)
end do:

Why can't i get Quad2. Please help, thanks.

Please Wait...