3 ms·
Octave is much slower than MATLAB.
by gaius 11y ago
Octave is much slower than MATLAB.
- aurelian15 11y agoTrue, but if performance is your key concern, you shouldn't use either of them. Octave and MATLAB are great for prototyping matrix based numerical algorithms. And for this purpose I find Octave much more pleasant, since it is less nitpicky regarding its syntax. And once I have something that works and want to apply it to huge datasets, I usually rewrite my code in C++.
- IshKebab 11y agoThat's exactly why Julia was created - it's supposed to be like Matlab, but fast.
- jordigh 11y agoThe interpreter is. But if you write vectorised code, we frequently are able to outperform Matlab. Matlab used to have the same problem, and they even used to have docs on how to vectorise. When I first learned Matlab in 2004, they told me, "don't use loops". Twelve years later, you're supposed to write all the deeply-nested loops you want. So yes, most Matlab code out there is loopy, so it's slow in Octave. But if you write it for Octave and don't make it loopy, it's quite good.