You can index the second column of matrix C
in MATLAB using the following code:
main.m8 chars2 lines
This would give you all the rows in the second column of matrix C
. In MATLAB, the colon :
is used to index all elements along a certain dimension, and 2
specifies the second column.
gistlibby LogSnag