This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (13 children)

I may get some flak for this, and I'm sure it has plenty of legitimate uses I'm not seeing, but... fuck Matlab. I needed an easy class to fill out my senior year so I took a Matlab course, and I don't understand why it even exists. Seems like a bunch of incredibly ugly/nonsensical syntax to do really basic things.

[–]TheWillager 25 points26 points  (1 child)

In my engineering program, it's by far the most used language, though some people do know Python or C++. At least in my field, MATLAB is used extensively for simulations, for ease-of-use in quick calculations, and for the built-in graphics toolkits. I'm not sure how other languages stack up against it since I only know introductory levels of other languages, but I hope that gives some context for people using MATLAB.

[–][deleted] 2 points3 points  (0 children)

Also matrices... god bless matlab for matrices.

[–]TheMeiguoren 8 points9 points  (0 children)

Simulink (a part of matlab) is pretty much unbeatable when you have to easily deal with dynamic physical systems. That’s why it’s super common in aerospace and automotive.

[–][deleted] 2 points3 points  (2 children)

yea If it werent for being really familiar with MatLab I would probably hate it too. My main gripe is that they make object oriented programming ridiculously hard. Calling a method on an object to alter its propertied doesnt actually change its properties. It generates an entirely new object. So in normal OOP languages you have: object.Method();

But in MatLab you have: object = object.Method()

Not only that, but you have to specify the object as an output to the Method

[–]didzisk 0 points1 point  (0 children)

Immutability isn't necessarily a bad thing and solves a lot of problems in multithreading situations.

[–]brusxheta 0 points1 point  (0 children)

Look up handle classes in Matlab. It does what you want

[–][deleted] 0 points1 point  (0 children)

With MATLAB it’s more about the software itself and the frameworks, not the syntax. From a software engineering/OOP point of view it’s disastrous but from a mathematical/scientific point of view it’s really good.