Skip to main content
1-Visitor
November 9, 2014
Solved

How to stack all columns of a large matrix?

  • November 9, 2014
  • 2 replies
  • 1258 views

I want to stack all 100 columns of a 1000 x 100 matrix to form a vector with 100,000 elements.

Best answer by StuartBruff

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
November 9, 2014

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

FF_011-VisitorAuthor
1-Visitor
November 9, 2014

Fantastic! Thanks again, Stuart.