# Turn a vector of arrays into a matrix (The arrays become the rows of the matrix)

**URL:** <https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550>\
**Category:** New to Julia\
**Tags:** question, arrays, matrices\
**Created:** [April 15, 2022, 8:56pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550 "2022-04-15T20:56:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Post date:** [April 15, 2022, 8:56pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550/1 "2022-04-15T20:56:04Z")

</div>

I have a vector of arrays as shown in the picture:

 ![Screenshot from 2022-04-15 16-47-24](https://global.discourse-cdn.com/julialang/original/3X/3/2/32d2d346f8766b1dc771fcdff7199472a0e0c8d8.png)  
How can I transform it into a matrix where the arrays become simply the rows of the matrix?

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [April 15, 2022, 8:59pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550/2 "2022-04-15T20:59:37Z")

</div>

[This](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609) could be an entry to the FAQ.

---

<div class="post-metadata">

**Author:** ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Post date:** [April 15, 2022, 9:01pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550/3 "2022-04-15T21:01:15Z")

</div>

I just found out that it was asked before here. Sorry about that 🙂

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [April 15, 2022, 9:03pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550/4 "2022-04-15T21:03:34Z")

</div>

> [@ahmed](#):
>
> Sorry about that

No need to worry, you have to be around for a bit of time to see repeating questions;)
