Q: How to create a scipy matrix that is MxN where, M and N are decided by the user and the elements are fed one after the other? I want to create a 2-d matrix of coordinates.  I want the use to be able to decide the number of rows and columns, and the elements of the matrix when the program is run.  I know how to do this using arrays which I have done here:
F = int(raw_input("Enter expected number of frames: "))
P = int(raw_input("Enter expected points to track object: "))
W = []
for i in xrange (2*F):
 W.append([])
 print "frame number", (i+1)
 for j in xrange (P):
  W[i].append(int(raw_input("Enter the next coordinate: ")))
print W

My question is how do I do the same using the matrix functions in scipy (or numpy).  I want to do this so I can easily perform inverses and calculate SVD etc.
Any help will be greatly appreciated.
Thanks!

A: I have found a way.
Here is how I am doing it:
import numpy as np

F = int(raw_input("Enter expected number of frames: "))
P = int(raw_input("Enter expected points to track object: "))
W = np.zeros(shape = (2*F, P))


for i in xrange (2*F):
  for j in xrange (P):
    print "Frame: ", (i+1), "Point: ", (j+1)
    W[i][j] = (int(raw_input("Enter the next coordinate: ")))
print W

