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

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 23, 2022, 8:47pm UTC](https://discourse.julialang.org/t/how-can-i-transform-this-matlab-code-into-julia/81351/29 "2022-05-23T20:47:55Z")

</div>

> [@Raymond](#):
>
> Can you help me to improve my Julia codes. It takes very long time. Here is the Julia codes.

The thread started with a short translation from Matlab to Julia of arrays’ indexing, and seems to have turned into a full review of 400 lines of code.

The best practice is to provide minimum working examples (MWE): [please check this PSA](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

In my opinion, once the initial question has been answered, it is not always wise to add a lot of new ones, and certainly not to add 400 LOCs, but rather to create a new thread. Thank you.

---

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