Reputation: 3727
If I have a matrix:
A = [ 1 2
3 4
5 6]
how do I create another matrix from that so that it is:
B = [ 3 4
5 6]
Basically, I just want to take the first row off of a matrix and assign the remaining to a new matrix. I tried:
B = A ([2,:],:)
but that didn't work... Any help would be greatly appreciated, thanks!
Upvotes: 0
Views: 99