# Sub2ind on julia

**URL:** <https://discourse.julialang.org/t/sub2ind-on-julia/109717>\
**Category:** New to Julia\
**Tags:** image-processing\
**Created:** [February 4, 2024, 11:49pm UTC](https://discourse.julialang.org/t/sub2ind-on-julia/109717 "2024-02-04T23:49:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [February 4, 2024, 11:56pm UTC](https://discourse.julialang.org/t/sub2ind-on-julia/109717/2 "2024-02-04T23:56:57Z")

</div>

> [@PSA: replacement of ind2sub/sub2ind in Julia 0.7+](https://discourse.julialang.org/t/psa-replacement-of-ind2sub-sub2ind-in-julia-0-7/14666):
>
> I’ve now seen a couple of cases where folks seem unhappy about the removal of the functions ind2sub and sub2ind. Some of the concerns may stem from the suggested replacement in the deprecation warning, as the replacement, while “safe,” seems considerably more awkward. This is a short post explaining their replacements and the motivation for the change; once you learn to think in the new way, I’d be surprised if you don’t become a fan of the new approach. In older versions of Julia, the way to c…

---

_[View the full topic](https://discourse.julialang.org/t/sub2ind-on-julia/109717)._
