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

<div class="post-metadata">

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

</div>

I have a row by col matrix called “stock” and I have a col array called “flow”. I want to add the content of flow to the bottom of stock. I thought the following would work, but it does not:

```
stock = [stock;flow[1,:]]

```

My background is MATLAB, so I thought I could fix the issue using

```
stock = [stock;flow[1,:]']

```

But that didn’t work either.

What is the way to get the job done?

---

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