# How can I transform this matlab code into Julia

**URL:** <https://discourse.julialang.org/t/how-can-i-transform-this-matlab-code-into-julia/81351>\
**Category:** General Usage\
**Tags:** matlab, indexing, arrays\
**Created:** [May 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/how-can-i-transform-this-matlab-code-into-julia/81351 "2022-05-20T07:57:07Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [May 20, 2022, 4:47pm UTC](https://discourse.julialang.org/t/how-can-i-transform-this-matlab-code-into-julia/81351/9 "2022-05-20T16:47:47Z")

</div>

Not for a long time [PSA: replacement of ind2sub/sub2ind in Julia 0.7+](https://discourse.julialang.org/t/psa-replacement-of-ind2sub-sub2ind-in-julia-0-7/14666)

---

_[View the full topic](https://discourse.julialang.org/t/how-can-i-transform-this-matlab-code-into-julia/81351)._
