Let X be some matrix. Then, X(:,i) will give you the i-th column with all the rows, and X(i,:) will give you the i-th row with all the columns.
Monday, November 29, 2010
Subscribe to:
Posts (Atom)
I write because I forget. 因為忘,所以寫下來.
Let X be some matrix. Then, X(:,i) will give you the i-th column with all the rows, and X(i,:) will give you the i-th row with all the columns.