I have a matrix of data A with dimension m-by-n. Where m is the number of data vectors and n is the dimension if each data vector (so they are arranged by rows).
If I do
[U,S,V] = svds(A, k);
the U matrix will be m-by-k, but I was expecting a n-by-k matrix (to be used to project any 1-by-n original vector to a 1-by-k one). What I am doing wrong? Should I arrange data by column? (i.e., use A' instead of A)