If you don't care about losing whatever data is in those columns, you can delete the last 4 columns using
A(:,49:52) = []
Otherwise, I'd assign to a new matrix as HPM suggested.
1
votes
Well
B = A(:,1:48)
will make B a 48x48 matrix which matches part of A. Is that what you want ?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more