ProgrammerHumor

matlabBadPost

matlabBadPost
https://i.redd.it/b3eyb0y0q8ef1.jpeg
Reddit

Discussion

you-should-learn-c

Something even worse happened to the Matlab license? Am I missing something?

7 hours ago
TobyWasBestSpiderMan OP
:py::cp:

It only really works well with itself --Someone who translates a lot of Matlab code to C++

7 hours ago
holyknight24601

Matlab is actually super easy to use in python

6 hours ago
goDie61

Great, that will be super handy if I need to do any data analysis in Python. Oh, wait.

6 hours ago
zawalimbooo

what am I missing

Data analysis is usually done in python

4 hours ago
goDie61

Exactly. Python already has a massive suite of data tools, so there's not much need for Matlab integration most of the time.

4 hours ago
zawalimbooo

Ahh I see, I see

4 hours ago
Mithycore

Yeah, that's kind of the point

4 hours ago
_Alpha-Delta_
:py::cp::c::asm::bash::snoo_trollface:

Probably because some madlad made a C++ wrapper to make python easier to use

5 hours ago
Laurent_Blanc

I tried that but did not succeed, do you have some pointers/resources for me?

5 hours ago
Not-the-best-name
:py:

Do not do it. Just use Python.

3 hours ago
Laurent_Blanc

Totally agree, but I am currently migrating a workflow from Matlab to Python and wanted to make the transition easier for some colleagues (so they can use their old Matlab scripts and can rewrite them one by one)

2 hours ago
Not-the-best-name
:py:

Yea man, you are telling me, our company probably spent a few hundred thousand dollars rewriting our MATLAB scripts into proper Python software. It's working well, now, a decade later. And we still have some legacy servers sitting there for if we need to run MATLAB again.

2 hours ago
tracernz

Embedded coder too expensive as well? 😭

3 hours ago
zoniss

Why don't you generate c++ code?

1 hour ago
Regular_Comment_948

Matlab, or: Where you need a license to move the mouse pointer.

7 hours ago
VaryStaybullGeenyiss

Their biggest crime is not making it clear in online documentation if a function is part of a toolbox or not.

4 hours ago
the_flying_condor
:py::ftn:

So many times I have wasted time on this. It's insane that there isn't even an error message saying that the function you are trying to call is in a toolbox you don't have. For me it has always been some weird message implying that I am using the function incorrectly, rather than trying to use one I'm not permitted to use.

2 hours ago
VaryStaybullGeenyiss

Hmm, I do at least usually get an error message that mentions a toolbox. Still super fucking annoying though since I'll have spent time reading documentation by the time I call the function.

1 hour ago
randomdane18

Isn’t it quite clear in the left bar which toolbox the function is from?

1 hour ago
VaryStaybullGeenyiss

Actually I just checked and you're right. Fair enough. Still not clear/obvious. But now I know where to look at least.

1 hour ago
Landen-Saturday87

MATLAB lost me at the point where they expect me to pay extra just to use another library. Just numpy and scipy cover like 95% of basically all matlab libraries. For free

13 minutes ago
Boris-Lip

Do people still use Matlab? And simulink?

7 hours ago
blending-tea
:py::gd::bash:

University classes 😩

7 hours ago
madTerminator

My university was using pirated version 😂

7 hours ago
TobyWasBestSpiderMan OP
:py::cp:

That’s pretty based haha

6 hours ago
machsmit
:py::rust:

way back in the day we either had a university license if we needed big-boy matlab, or the coursework was such that it could be done in octave

5 hours ago
CeleritasLucis
:j::py::rust:

Same. Professor even provided a gdrive link to download the specific version he was teaching with.

5 hours ago
madTerminator

We get pendrive to copy ;)

3 hours ago
BenjieWheeler
:cs::ts::j:

Same, mine was using everything pirated, Matlab, Solidworks, Autocad, and many more lol

3 hours ago
spotter

Literally first thing our matlab lab guy said was "I've got this magical thumb drive here with some of the goodies specially licensed, if you know what I mean, now be so kind to rotate this through the group and get it back to me at the end of class." Not hygienic? For sure. Based? AF.

It was two decades ago and I guess having enough of matlab bullshit is the constant.

Stuff I've done after uni was in either Pyton or Octave.

30 minutes ago
TobyWasBestSpiderMan OP
:py::cp:

Universities really need to kick the habit

7 hours ago
the_guy_who_answer69

Is this satire?

3 hours ago
TobyWasBestSpiderMan OP
:py::cp:

Haha, yes it is, wrote it making fun of the opioid settlement a few years ago

3 hours ago
Boris-Lip

I think last time i've seen it has indeed been in the college environment, but i did work with it in the real world at some point, intermittently.

7 hours ago
blending-tea
:py::gd::bash:

jokes aside I think it's well suited for DSP/waveform analysis but I dont work in that field so idk rly

7 hours ago
Boris-Lip

Last time i touched anything DSP was in college, i think. Or maybe not... What i do remember, everything neural networks related has been done on Matlab 20+ or so years ago, now - I don't think so.

7 hours ago
BrunoEye

Despite doing a lot of DSP I refuse to use it anyway because the licensing is so shit.

6 hours ago
Kobymaru376

Still? That was a thing back in my day, didn't think they would still do it these days.

3 hours ago
Dapper-Actuary-8503

They do though.

2 hours ago
thedefibulator

Everyone in the automotive industry

6 hours ago
mrdude05
:cp:

It really depends on the field. I work in RF/comms engineering and it's absolutely inescapable, but most of the engineers I know outside of my field never have to touch it

6 hours ago
CptanPanic

Aerospace does

6 hours ago
LJWacker

Yeah I work with implementing DSP algos on FPGAs and they have great tools for that

6 hours ago
gnomo-da-silva

use octave

5 hours ago
Owndampu
:m:

Yep unfortunatly, we do embedded development using simulink codegen at my work

5 hours ago
Izacundo1

Very big in aerospace

5 hours ago
rockcanteverdie

Yes and it's actually really awesome for a lot of engineering stuff. Although I'm hoping that Julia will eventually grow to challenge it

4 hours ago
in_taco

It's the dominating language in automation, like robotics and wind turbines. There's really no competitor when it comes to control implementation. Also the license cost is negligible compared to how much you save on implementation cost (engineering hours).

5 hours ago
crappleIcrap

Do you think when you left school people just stopped doing university math? Some of those old goats bring up Fortran daily and you expect them to change their lesson plans for what reason exactly?

5 hours ago
Aggravating_Stuff713

I get podcast ads about Matlab. It’s nostalgic.

5 hours ago
Dantzig

Know of one place, mainly due to the vast existing code base in matlab

5 hours ago
Elvis5741

Simulink, now that's a trip down memory lane

1 hour ago
TobyWasBestSpiderMan OP
:py::cp:

Older engineers

7 hours ago
Boris-Lip

It was an incredibly powerful tool back at the times. But it did cost a fortune, and to me it feels everyone has abandoned it and most of what it could do has been slowly ported over to Python libs, and is 100% free to use. I:d fully expect Matlab to kick the bucket, TBH.

Side note - you can pretty much call me an "old engineer", i've been using it before, but that was well over 20 years ago.

7 hours ago
New_Enthusiasm9053

Still no good simulink replacement afaik. Base MATLAB isn't worth it but if you need one of the packages you don't have much of a choice.

6 hours ago
gameplayer55055

I remember rewriting some Fourier or wavelet stuff in C#, because python took several minutes to process data.

Too bad that there's no good science infrastructure in C#, I had to do many things manually, and Python has a really great ecosystem of ready to use libraries.

5 hours ago
Dapper-Actuary-8503

Python I’ve noticed is getting a lot quicker than what it was +10 years ago when I first learned it. I started using it again in the last 3 years heavily and it’s very capable especially in this respect. But that’s just my opinion and I don’t care for Python all that much.

2 hours ago
gameplayer55055

Python definitely gets better. But it will never be faster than c++.

Python actually uses C++, but only for available libraries and functions. If you make custom algorithms it is slow. C# for loop is tons faster, and C++ for loop is even more fast. But I use C# because it has nice/safer threading and is cross platform.

1 hour ago
Dapper-Actuary-8503

I completely agree C# libraries are much safer. Are you comfortable with C++, if so why not make your own Python wrapper? Im working on a project right now making light weight scripting interface for my company’s simulator that’s written in C#. I’ve noticed with C#’s DLLs they aren’t quiet the same as C/C++.

I personally prefer raw C over all as a language it’s stupidly simple. However, C/C++ need to come to the 21 century with some of the project management tools like C# and other modern languages bring to the table.

42 minutes ago
gameplayer55055

I like c# because it's dead simple, fast enough and it's very easy to use dlls using dllimport.

But I avoid c++ because of problems with windows libraries. Cmake and vcpkg just don't work. So every time I need c++ I use my MacBook Pro because g++ works well there.

33 minutes ago
Long_Plays

My lab mates use Octave now

6 hours ago
in_taco

Octave is good for research - not good for development

5 hours ago
the_guy_who_answer69

Okay, I am genuinely curious what is the use case of matlab in actual software development?

I mean what can matlab do in development that a normal opensource high level language can't.

I mean it's easy to use. I can't think of an idea why will anyone choose matlab instead of anything else....

3 hours ago
in_taco

First, think of the typical user of Matlab as someone who only has superficial introduction to programming, but have to do a lot of mathematical programming. We're talking 10-30 engineers continually upgrading/expanding a codebase compiled to optimize loads/power on a machine.

The focus of Matlab programming is not on optimal code or just getting something to work - it is more investigative. Usually, you don't know the form of the solution until you have something that works. And getting there requires multiple iterations and tests, sometimes billions in order to optimize parameters. Or you might need a quick analysis of pole-zero points in the code you wrote. How many programming languages has a button to export the entire function as a linear set?

And then there's Simulink, which allows for large application programming visually. Usually we have multiple loops in the code. Simple example: PID controller. For school projects it's fairly straight-forward, and you don't need Simulink. But for industrial development you need all kinds of safeguards, careful management of resets, possible to insert noise at the right place. In c (or similar) this would be hundreds of codelines, but in Simulink you can have a simple overview on the screen.

Generally speaking, Matlab is the best there is for control development - but it's absolutely horrible for something like game development.

1 hour ago
the_guy_who_answer69

Everything you said is again for prototyping a very very niche field (which is again mostly research) which could be again done by something like Octave (at this point you might think I am arguing, I am not really trying to understand) except probably simulink.

1 hour ago
in_taco

This is not a niche field. It's robotics, wind turbines, segway, brewery automation - anything that requires control theory as the core part of operation. And sure Octave can do much of the same, but not everything, and it's worse at many other tasks. We actually have a group of programmers here which try to implement Octave development. I've been helping them convert some of our Matlab data-analysis functions into Octave, but it's missing a lot of functions. E.g. we have a pending task with implementing a bode plot function for discrete domain in Octave.

59 minutes ago
the_guy_who_answer69

I just asked Chatgpt with your previous comment and I got it now. Was about to comment.

Basically anyone who needs a large number of number crunching but doesn't want to write system code.

Used mostly for simulating real life environment for control systems that are used in niche fields like robotics.

Used by engineers (not the software engineers) for simulating or prototyping design before actually building the design.

53 minutes ago
WahooSS238

Stop using the damn robot to do your thinking for you

41 minutes ago
the_guy_who_answer69

I use those damn robots as a search engine to understand things that I wasn't aware of them. Like the zeros and poles concept. I know what it is but wasn't aware that it is called the said terms.

It's not thinking for me it's explaining me things....

17 minutes ago
MrKirushko
:c:

Why not SciLab though? The language is the same but at least it has a Simulink replacement.

3 hours ago
PityUpvote
:py::rust:

All the downsides of MATLAB without any of the benefits

3 hours ago
Immudzen

I had a professor and he wanted to know why didn't research papers use MATLAB for machine learning since it was so easy to do. I had to explain and demonstrate how far behind MATLAB was compared to PyTorch. At this point, MATLAB is like a toy compared to Python for science and engineering.

5 hours ago
MortimerErnest

Depends on the kind of engineering, I work on DSP and it is still very heavily used. I try to use Python/numpy/scipy when possible, but there are not always great replacements available.

5 hours ago
the_guy_who_answer69

Octave

3 hours ago
NoTarget5646

whats with the downvotes? (i dont know what octave is)

48 minutes ago
in_taco

Can you test your code with a noisy sine wave input and check output in 30 s? Can you setup a template harness for serial testing of alarm handler files in a few minutes?

5 hours ago
Fair-Working4401

Ofc.

2 hours ago
jpritcha3-14
:py:

MatLab is not a bad language/environment, it's just highly application specific. Outside of some extremely niche engineering applications, python is generally the better and easier choice (and it's always cheaper). Between matplotlib and numpy, most of MatLab's more broadly useful features are available in Python.

Also, MatLab is taught in a lot of EE degrees so there are lots of very poorly written MatLab scripts floating around. I say this as a former EE who has transitioned to software and now ports very messy EE MatLab scripts to python for my company 🤣

3 hours ago
JammyJ1mJ1m

I had to use Matlab for one of my university assignments, it was to do with image processing / recognition. I hated everything about it. To Matlab: Kindly and unequivocally, fuck off.

6 hours ago
Scytheal

Completely agree. The only thing Matlab was good for - it cured my aversion of Python. Absolutely everything is better than Matlab. How can something be THIS bad and fucking expensive and still get used?

4 hours ago
maveric00

Don't know for scientific usage, but Simulink and the ability to autocode embedded software is hard to beat in the industry.

Although I would wish it would be.

3 hours ago
Scytheal

We had to use it "for historical reasons" aka they bought the licence and didn't have the time to change it to something else yet. At least it was only for one course.

3 hours ago
DomDomPop

But you were so close to a bunch of free shit!

4 hours ago
Lechowski

Have you tried developing in ABAP? You need to purchase a separate license for the Runtime, the Language Server and the IDE

2 hours ago
BlakLad

Any programming language that starts with index 1 should be excised from this planet

5 hours ago
TobyWasBestSpiderMan OP
:py::cp:

Unless it’s cool like Julia which can index however ya want

5 hours ago
new_number_one

Haven’t heard Julia in years. Do people actually use it?

4 hours ago
TobyWasBestSpiderMan OP
:py::cp:

I know one engineer personally, otherwise nah

4 hours ago
Kamigeist
:cp:

There are plenty of projects that benefit from Julia. Gmsh (a C++ mesh generation tool) has three supported languages: C++, Python and Julia. People who say that Julia isn't used just don't know Julia that much. Go see the funding the language gets for yourself.

22 minutes ago
ChemiCalChems

Well you can just write a custom container in pretty much any language, just like what that example does, so this isn't really Julia specific, is it?

2 hours ago
wavefunctionp
:js::cs:

That seems even worse.

2 hours ago
drumDev29

It is, it's actively bad you now have zero confidence in any array that some jackass didn't give it a wild ass index

1 hour ago
AntiProton-
:py: :kt: :p: :sloth:

Matlab <<< Julia

2 hours ago
iDidTheMaths252

Julia ftw!

41 minutes ago
khalcyon2011

Use gnu octave. Open source and near one-to-one compatibility with matlab.

5 hours ago
anthro28

Bask in the warm glow of Octave superiority. 

If it's good enough for my numerical methods instructor and her bajillion dollar research, it's good enough for me. 

5 hours ago
Stunning_Ride_220

I loved using it

1 hour ago