Palli
April 13, 2020, 2:20pm
5
I’ve been in your shoes and I’ve used the translator (it’s helpful but not perfect):
It might be helpful to know you can call from Julia to MATLAB to reuse code (but not to Octave? that would be useful): GitHub - JuliaInterop/MATLAB.jl: Calling MATLAB in Julia through MATLAB Engine
While that package works for current Julia, this one doesn’t (you can still download and use older Julia to use with it or even better help upgrade that package):
IMO Julia requires a very different approach (small, modular functions, loops or broadcasting instead of vectorization, attention to type stability, etc), so while it is relatively easy to make a “literal translation” of simple Matlab scripts, the performance is often disappointing because of these gotchas. I have seen some people do this and conclude that Julia is super-slow.
Also, while there are of course exceptions to this, many Matlab scripts that I have seen are just badly written from a…
https://en.wikibooks.org/wiki/Julia_for_MATLAB_Users
2 Likes