# 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:** 2

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [December 5, 2021, 1:38pm UTC](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609/2 "2021-12-05T13:38:25Z")

</div>

What have you tried so far?

The answer is

```julia
julia> mapreduce(permutedims, vcat, x)
2×3 Matrix{Int64}:
 1 0 1
 0 0 1

```

---

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