this post was submitted on 05 Jun 2025
44 points (100.0% liked)

Linux

7694 readers
197 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
top 6 comments
sorted by: hot top controversial new old
[–] BuboScandiacus@mander.xyz 10 points 2 days ago (1 children)
[–] noodles@sh.itjust.works 4 points 2 days ago

If you don't need simulink then it's more than enough

[–] djsaskdja@reddthat.com 10 points 2 days ago

Good timing considering how bad that Mathworks/MATLAB outage was.

[–] pspssp 3 points 2 days ago

Used to use Octave a long time ago, using Python (numpy, scipy,pandas) nowadays for all the things I used it for.

[–] 0101100101@programming.dev 1 points 2 days ago (1 children)

What advantage does Octave / Matlab have over say python and matplotlilb? Jupyter notebook would offer a more interactive experience if necessary.

[–] pixelpop3@programming.dev 3 points 1 day ago* (last edited 1 day ago)

For one thing it will run a lot of existing and proven Matlab code.

Another is that Octave and Matlab syntax is ambiguous about functions vs indexes (has pros and cons).

And don't get me wrong (I use jupyter and python a lot and really do like it) but numpy can get fundamentally weird in the way indexing maps to memory in ways that I don't remember happening back when I mostly used Octave.

And for the record Octave's version of the language is vastly superior to Matlab's. (Octave has chained indexing, broadcasting, etc. It could be that Matlab has finally copied those features but dunno. Every time I have to work in actual Matlab I want to rip my hair and teeth out due to lack of these basic trivial syntax features)

For me the major advantage of python is having access to other non-numerical things. It's so difficult to do anything not-numerics in Octave and Matlab or to use even basic data structures like lists and trees. Python is sort of a basic dynamic object language that with some functional programming idioms mixed in that makes some of the things that would otherwise make you scream for Lisp possible. That's worth the numpy annoyances. Otherwise I would probably be using julia.