# How to tranform a vector into a matrix?

**URL:** <https://discourse.julialang.org/t/how-to-tranform-a-vector-into-a-matrix/82286>\
**Category:** Performance\
**Tags:** question\
**Created:** [June 5, 2022, 11:35pm UTC](https://discourse.julialang.org/t/how-to-tranform-a-vector-into-a-matrix/82286 "2022-06-05T23:35:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [June 5, 2022, 11:38pm UTC](https://discourse.julialang.org/t/how-to-tranform-a-vector-into-a-matrix/82286/2 "2022-06-05T23:38:25Z")

</div>

Does this work for you @Leticia-maria ?

> [@How to convert Vector of Vectors to Matrix](https://discourse.julialang.org/t/how-to-convert-vector-of-vectors-to-matrix/72609/2):
>
> What have you tried so far? The answer is 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-tranform-a-vector-into-a-matrix/82286)._
