Solved
How to stack all columns of a large matrix?
I want to stack all 100 columns of a 1000 x 100 matrix to form a vector with 100,000 elements.
I want to stack all 100 columns of a 1000 x 100 matrix to form a vector with 100,000 elements.
Here's a couple of ways. I normally use the general purpose function vec (defined in the attached worksheet) that will convert even a nested array into a vector.
Stuart
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.