How to copy specific number of columns from a matrix to another matrix?
I know the way to copy specific rows from one matrix to another but how can I copy only a specific number of columns from one matrix to another? For example, if we have 10x10 matrix A (10 rows and 10 columns)and I want to copy only the columns ranging from 1 to 5 to another matrix B. Is it possible?
Note: I can't delete the columns from matrix A first.