From: Jacob Mick on
I have two matrices.

A= 1x400
9,10,12,etc...

B= 400x400
val =
(9,9)=56 (10,9)=53 (12,9)=2, etc...

How would I output a matrix C that is like B, except with the order of A, i.e.

C=(1,1)=56 (2,1)=53 (3,10)=2, etc...


I've tried looking everywhere for help, it seems like there's a simple solution I'm overlooking.

Please help!