In MATLAB, you can get rows of an array by using the colon operator to specify the range of rows you want to extract. Here is an example:
main.m275 chars15 lines
In both cases, we used the colon operator to specify all columns of the desired rows. The resulting variable is a row vector containing the values of the specified rows.
gistlibby LogSnag