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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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