I ve got a matrix and i want to split is in the columns vectors. I want to have as output the
above vectors [a b c d e f g h k l m n o p q r s t u] and as an input the matrix A. is there any idea?
I ve got a matrix and i want to split is in the columns
Share
You can do this by converting your matrix to a cell array as follows:
This results in four column vectors
a, b, c, d. Add more letters as needed.I’m not really sure why you would want to do this though, I think it’s probably more efficient to just index your original matrix with the column number you need.