To extract the last 2 columns of a matrix in Matlab, you can use indexing. Here's an example code:
main.m231 chars10 lines
This will output:
main.m24 chars4 lines
Note that the result is also a matrix, with the same number of rows as the original matrix but only the last 2 columns.
gistlibby LogSnag