# How to change arrays of a mutable struct

**URL:** <https://discourse.julialang.org/t/how-to-change-arrays-of-a-mutable-struct/56527>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [March 5, 2021, 6:05am UTC](https://discourse.julialang.org/t/how-to-change-arrays-of-a-mutable-struct/56527 "2021-03-05T06:05:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [March 6, 2021, 12:36pm UTC](https://discourse.julialang.org/t/how-to-change-arrays-of-a-mutable-struct/56527/7 "2021-03-06T12:36:39Z")

</div>

I also didn’t know these methods only work on 1D arrays! See [Resize!(matrix)](https://discourse.julialang.org/t/resize-matrix/2379/) for a discussion.

@DhananjayAshok can you try to make a minimal working example in Julia that reproduces the problem? Or at least show the exact error message that you get?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-change-arrays-of-a-mutable-struct/56527)._
