cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

How to stack all columns of a large matrix?

FF
1-Newbie
1-Newbie

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.

1 ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald II
(To:FF)

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

View solution in original post

2 REPLIES 2
StuartBruff
23-Emerald II
(To:FF)

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
1-Newbie
1-Newbie
(To:FF)

Fantastic! Thanks again, Stuart.

Top Tags