You are using a lot of vectorized operations and Julia isn't as good as matlab is with those.
The usual solution is to devectorized your code and to use loops (except for matrix multiplication if you have large matrices).
You are using a lot of vectorized operations and Julia isn't as good as matlab is with those.
The usual solution is to devectorized your code and to use loops (except for matrix multiplication if you have large matrices).