How do I create a matrix that expands with new column vectors added to it?
조회 수: 8(최근 30일)
I have a for loop, at the end of each loop I get a column vector (always the same length). I would like to store that column in a matrix that keeps expanding.
So if my loop executes n times (the amount n isn't predetermined), at the end I would like to have a matrix with n columns. How do I do this?
I've looked up adding vectors to matrices, merging etc but couldn't find what I was looking for.