Skip to main content
1-Visitor
Nov 9, 2014 6:10 AM UTC
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.

23-Emerald V
Nov 9, 2014 8:17 AM UTC

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

2 replies

23-Emerald V
Nov 9, 2014 8:17 AM UTC

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

Translate
FF_011-VisitorAuthor
1-Visitor
Nov 9, 2014 12:28 PM UTC

Fantastic! Thanks again, Stuart.

Translate