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?

17 hours ago
TobyWasBestSpiderMan OP
:py::cp:

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

16 hours ago
holyknight24601

Matlab is actually super easy to use in python

15 hours ago
goDie61

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

15 hours ago
zawalimbooo

what am I missing

Data analysis is usually done in python

13 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.

13 hours ago
zawalimbooo

Ahh I see, I see

13 hours ago
Mithycore

Yeah, that's kind of the point

13 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

14 hours ago
Laurent_Blanc

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

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

Do not do it. Just use Python.

12 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)

11 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.

11 hours ago
tracernz

Embedded coder too expensive as well? 😭

12 hours ago
Craszeja

Embedded Coder is great overall. My team uses it almost daily. Largely positive feedback.

Are you doing it manually?

6 hours ago
TobyWasBestSpiderMan OP
:py::cp:

Mostly, out LLM doesn’t quite get it right so it ends up being mostly manual

6 hours ago
_PM_ME_PANGOLINS_
:j::py::c::cp::js::bash:

Oh, management are idiots, I see.

1 hour ago
zoniss

Why don't you generate c++ code?

11 hours ago
Regular_Comment_948

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

16 hours ago
VaryStaybullGeenyiss

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

14 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.

11 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.

11 hours ago
randomdane18

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

10 hours 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.

10 hours 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

9 hours ago
Boris-Lip

Do people still use Matlab? And simulink?

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

University classes 😩

16 hours ago
madTerminator

My university was using pirated version 😂

16 hours ago
TobyWasBestSpiderMan OP
:py::cp:

That’s pretty based haha

15 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

14 hours ago
CeleritasLucis
:j::py::rust:

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

15 hours ago
madTerminator

We get pendrive to copy ;)

13 hours ago
BenjieWheeler
:cs::ts::j:

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

12 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.

9 hours ago
TobyWasBestSpiderMan OP
:py::cp:

Universities really need to kick the habit

16 hours ago
the_guy_who_answer69

Is this satire?

12 hours ago
TobyWasBestSpiderMan OP
:py::cp:

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

12 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.

16 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

16 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.

16 hours ago
BrunoEye

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

15 hours ago
IconicScrap

They made me code a game. In retaliation I turned an integer to a reverse character array so I could operate on each digit in reverse order.

3 hours ago
Kobymaru376

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

12 hours ago
PaltaNoAvocado

You'd be surprised by how long universities take to update their software.

I'm in systems engineering and we were required to use IBM Rational Rose. A software that cannot even be downloaded without piracy because it was discontinued in 2011.

6 hours ago
Dapper-Actuary-8503

They do though.

11 hours ago
mrdude05
:cp:

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

15 hours ago
thedefibulator

Everyone in the automotive industry

15 hours ago
CptanPanic

Aerospace does

15 hours ago
TheBigGreenOgre
:m:

GNC engineer. It's industry wide in aerospace, there is literally no competitor for what it does well. It's expensive as hell, yes, but people shitting on it don't understand its use cases.

At least for dynamics and control, it's worth every penny.

7 hours ago
something_borrowed_

GNC engineer here too. Yep, there's nothing like Matlab right now. I sure wish there was because their toolboxes can add up to a significant cost but really there is nothing like Simulink. 

7 hours ago
doGoodScience_later

Recovering gnc engineer. It’s absolutely goated for that application. Barrier to entry is also by far the lowest of almost any language.

3 hours ago
LJWacker

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

15 hours ago
gnomo-da-silva

use octave

14 hours ago
C-SWhiskey

And simulink?

As if there's anything even remotely comparable out there?

8 hours ago
Izacundo1

Very big in aerospace

15 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

14 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).

14 hours ago
TheWorstePirate
:py:

Matlab? I work in robotics and industrial automation, and everything is in Python or C++. I used to work on Matlab all the time at an RF focused company, but I haven’t touched it in years of automation work.

5 hours ago
in_taco

Of course not everybody in robotics use it. Here in Denmark it's quite popular, but it seems to vary from region to region.

4 hours ago
Owndampu
:m:

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

15 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?

15 hours ago
Aggravating_Stuff713

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

14 hours ago
Dantzig

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

14 hours ago
coriolis7

My company does, as does a consulting firm that we use as well.

I’m in the process of porting over the scripts to Python. Not even for cost reasons, just to refactor the spaghetti code into something I can understand, and I am now more familiar with Python than Matlab. Being able to drop the license and have more collaborators who haven’t learned Matlab yet is a bonus.

5 hours ago
diegokabal
:py::powershell:

I know people that still uses Fortran...

7 hours ago
CharlemagneAdelaar

Hella

2 hours ago
Elvis5741

Simulink, now that's a trip down memory lane

10 hours ago
TobyWasBestSpiderMan OP
:py::cp:

Older engineers

16 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.

16 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.

16 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.

15 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.

11 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.

10 hours 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.

9 hours 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.

9 hours ago
Long_Plays

My lab mates use Octave now

15 hours ago
in_taco

Octave is good for research - not good for development

14 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....

12 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.

10 hours 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.

10 hours 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.

10 hours 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.

10 hours ago
WahooSS238

Stop using the damn robot to do your thinking for you

9 hours 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....

9 hours ago
in_taco

Exactly! We don't want to write import headers or define variable types - the compiler can do that work.

(I'm also ok with using ai in cases like these)

4 hours ago
Long_Plays

It's true, and I am doing research anyway

2 hours ago
PityUpvote
:py::rust:

All the downsides of MATLAB without any of the benefits

12 hours ago
MrKirushko
:c:

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

12 hours ago
Long_Plays

When I came into the place it was already there.

6 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.

15 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.

14 hours ago
the_guy_who_answer69

Octave

12 hours ago
NoTarget5646

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

10 hours 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?

14 hours ago
Fair-Working4401

Ofc.

11 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 🤣

12 hours ago
rt80186

Python may be free, but MatLab development can be cheaper when there are application specific toolboxes to speed up a $150/hour engineer.

4 hours ago
DomDomPop

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

14 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.

15 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?

14 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.

13 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.

12 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

12 hours ago
BlakLad

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

14 hours ago
TobyWasBestSpiderMan OP
:py::cp:

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

14 hours ago
new_number_one

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

13 hours ago
TobyWasBestSpiderMan OP
:py::cp:

I know one engineer personally, otherwise nah

13 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.

9 hours ago
new_number_one

I’ve been a data scientist for 15 years and Julia was promised to be the language of the future for DS/ML, but that was like 10 years ago… Haven’t heard much since which isn’t a criticism of the language or its users of course.

8 hours 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?

12 hours ago
aabcehu
:py:

lua does this too afaik

9 hours ago
wavefunctionp
:js::cs:

That seems even worse.

11 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

10 hours ago
AntiProton-
:py: :kt: :p: :sloth:

Matlab <<< Julia

12 hours ago
iDidTheMaths252

Julia ftw!

9 hours ago
Moontops

A lot of people miss that Matlab is not only the programming language but also an entire environment containing Simulink, stuff for RF design, DSP toolbox (also for FPGAs). Can you replace Matlab scripts with python scripts? Yeah, you could. Can you replace Simulink with something else? Debatable.

7 hours ago
ChuyMasta

Old fart here. I used Matlab on my bachelor's courses. As in. Non programming tasks. Calc 3, diff EQ and numerical analysis.

I liked it. (Early 2k's)

Then I took database structures and realized how innocent I was.

8 hours ago
khalcyon2011

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

14 hours ago
dimonoid123
:j::py::c:

Why not just use Octave?

6 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. 

14 hours ago
Stunning_Ride_220

I loved using it

10 hours ago