## 105 Reputation

12 years, 91 days

## Arranging Matrix...

Hi, I have a 9x1 'j' matrix, i am trying to arrange it into a 'b' matrix. For b[6..9,1], I would like it to have matrix 'j' in 6,5,4,3. May I know how do i do it please?

j:=RandomMatrix(9,1):
b[1..2,1]:=j[1..2,1]:
b[3..5,1]:=j[7..9,1]:
b[6..9,1]:=j[6..3,1]: <<<doesn't work

Thanks.

## How to rearrange matrix and making them ...

Hi, I have a 9x9 matrix. I am trying to add the last column to the first column, and vanish the last column, leaving me with a 9x8 matrix. Then add the last row to the first row, and vanish the last row, leaving me with a 8x8 matrix. I would like to repeat the process till i'm left with a 6x6 matrix. May I  know how could i do it please.

I am currently moving it one by one, but is not efficeint when i'm doing a few sets of 9x9 matrix. Could I know if it is possible...

## Problems with swapcol...

Hi, why is it when i use swapcol, it doesn't register? For example,

k:=RandomMatrix(9):
j:=swapcol(k,1,4):
Dimensions(j)
j

## 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