# Adding a row to the end of a matrix

**URL:** <https://discourse.julialang.org/t/adding-a-row-to-the-end-of-a-matrix/42290>\
**Category:** New to Julia\
**Created:** [June 30, 2020, 8:39am UTC](https://discourse.julialang.org/t/adding-a-row-to-the-end-of-a-matrix/42290 "2020-06-30T08:39:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [June 30, 2020, 8:42am UTC](https://discourse.julialang.org/t/adding-a-row-to-the-end-of-a-matrix/42290/2 "2020-06-30T08:42:03Z")

</div>

A MWE could help. As this works:

```julia
julia> a = rand(3,3); b = rand(3,3)
3×3 Array{Float64,2}:
 0.985678 0.725839 0.162454
 0.235461 0.789938 0.304215
 0.303247 0.792388 0.332765

julia> [a;b[1,:]']
4×3 Array{Float64,2}:
 0.196151 0.294524 0.332187
 0.615515 0.0402781 0.0076374
 0.330384 0.841746 0.0751668
 0.985678 0.725839 0.162454

```

---

_[View the full topic](https://discourse.julialang.org/t/adding-a-row-to-the-end-of-a-matrix/42290)._
