# How to convert Vector of Vectors to Matrix

**URL:** <https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609>\
**Category:** General Usage\
**Tags:** question, arrays\
**Created:** [December 5, 2021, 1:35pm UTC](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609 "2021-12-05T13:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 6, 2021, 3:58am UTC](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609/6 "2021-12-06T03:58:47Z")

</div>

For a large number of elements could do instead:

```julia
reduce(hcat,x)'

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609)._
