Monday, November 29, 2010

Matrices in MATLAB

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.

No comments: