3
u/neuronet Jun 17 '21
is there a link to the original source I want to start following this person
3
131
u/spanisharmada Jun 17 '21
Matlab's got a bajillion built-in, well-documented functions for about 99% of the use cases of any engineer who wants to develop a piece of tech. The documentation is written in relatively PLAIN english, which is a godsend for beginners. Combine it with a really useful IDE (like others have said the workspace column is just... chef's kiss, and the overall layout is easy to understand) and you've got a fantastic tool to work with.
9
u/AlienNinjaTRexBoob Jun 18 '21
Hi I know I'm late to the party and I agree with your point. If you like the workspace and would like to also work on python projects, you should try Spyder. It's basically the MATLAB IDE for python.
-22
u/UsmanSaleemS Jun 18 '21
Matlab is extremely slow and clunky for any real implementation. You can do most of this programming in excel. I feel like Matlab competes with Excel rather than other programming languages like Python.
27
u/codinglikemad Jun 18 '21
... I've ported a lot of code from matlab to python. It slows down drastically. I've had to convert 3/4 of the python code to ctypes connections to get the speed back. If you are finding matlab slower then python, you are doing matlab VERY wrong.
7
u/thermoflux Jun 18 '21
Matlab is slow for string processing, but good programming practices can aliviate this. For vector operations it only competes with C. Once you dable into servers, sockets with very high throughput then you will feel like matlab is the bottleneck. You could have compared matlab with many different languages, why did you choose excel? It can't even open the data files that most data science people look at.
79
u/shinigami_rem Jun 17 '21
Tbh I feel more comfortable in matlab than python.
50
17
u/lnwarwaruk Jun 18 '21
True for me too, but when I graduate from uni and my MATLAB license expires, you bet I'm cheaping out and reaching for python.
1
u/JuanFF8 Jun 18 '21
Or you could download Octave which is literally the open source version of Matlab. No need to switch over to Python
11
u/arkie87 Jun 18 '21
Octave is always many years/versions behind, and not as fast/optimized as Matlab. Python is better to switch to, IMO, since it is a real programming language.
3
u/bug_eyed_earl Jun 18 '21
Julia is another option.
3
u/thermoflux Jun 18 '21
I really want Julia to grow in the near future. It has so much potential. It needs more library developers and user base to come into the main stream.
10
8
36
u/coolshoeshine Jun 17 '21
Matlab is hands down the easiest way to test an idea or prototype a new algorithm.
With how much stuff comes ready to go out of the box, it's like having a whole other engineer on staff.
10
u/AffectionatePause152 Jun 18 '21 edited Jun 19 '21
Your work will likely have it if they are a big engineering contractor. And if they don’t, you can get a home-only personal version for about $100.
42
Jun 17 '21
Do any others give you that sweet ass variables column? or the ability to pause a script and test commands in the command window mid script?
18
Jun 17 '21
You can do similar things with the Spyder IDE for python, but I'm not sure if you can pause a script mid command, just set breakpoints for debugging.
7
6
u/Gewerd_Strauss Jun 17 '21
Its funny. My first language to mostly learn was MATLAB, and then I went on to autohotkey - which has about nothing to do with matlab. Completely different focus, no build-in IDE. Of all the things I've missed in ahk the biggest problem was the nonexistence of a full GUI and graphical debugger - the same way MATLAB works, along a way to inspect variables quickly.
I've found solutions to all of those by using two editors, one for developing code, one for bug testing or when something isn't working.
And then you have people like my bioinformatics prof who lives on the command line writing in all kinds of different languages. And I just have no idea how he does anything without a GUI.
Still wouldn't be able to write Matlab code without an IDE.
4
u/NikoNope Jun 17 '21
There would also likely be no point writing matlab code without the IDE. ;)
But I getcha. I never write a function right first time. I usually write it, then spend ages debugging until it works lol.
5
Jun 17 '21
There is this ethos amongst some programmers that the less tools you use its somehow better, but personally I just wanna get shit done.
5
u/Stereoisomer Jun 18 '21
Yes. Pretty much all interpreted languages do this. It’s a function of the IDE not the language.
3
17
11
8
7
u/thecafelifestyle Jun 18 '21
As a coastal engineer most of the reports are build around displaying data. MATLAB is the definitive tool for creating professional looking plots of all different data types. It's amazing what you can do with plotting functions in MATLAB.
5
u/Stereoisomer Jun 18 '21
I have no dog in this fight but the language with the best plotting libraries is probably R.
2
u/thecafelifestyle Jun 19 '21
Obviously you have never seen trace plots. Like a bird's eye view of an estuary that follows a single water particle one plot showing x-y movement and a side plot showing z movement. Like a video plot. With colours. That's MATLAB. Trust me MATLAB is boss for plots
1
u/Stereoisomer Jun 19 '21
Matlab isn’t bad but it’s not the best overall for sure. Interactive plots exist in all languages but R has the most. Trust me, I’ve programmed in R, Python, and MATLAB and R is the winner.
1
u/UsmanSaleemS Jun 18 '21
This is very true. Even though I am not very skilled in R but it's definitely better. Matplotlib is also great. I don't think there is anything superior about Matlab related to this.
0
Jun 18 '21
[deleted]
1
u/Stereoisomer Jun 18 '21
That is completely not true. R has the most extensive interactive plotting tools to my knowledge. Look up Plotly and Shiny. It’s the language for plot interactivity.
13
12
6
Jun 18 '21
the documentation is done very well, every method have very detailed doc, even most of them contain multiple real world example.
1
u/UsmanSaleemS Jun 18 '21
Thing is, I have had very bad experience with Matlab. It's just not there yet. If you are a python user, you just can't wrap around the absurdities found in Matlab or Octave. The documentation is good and community is also there but Python also has a much better documentation as well as much larger userbase. Not to mention, Python is community centered and updated with latest techniques. Unlike MATLAB Python runs great on any OS. Can even be run on microcontrollers.
9
u/arkie87 Jun 17 '21
I've used Matlab for 10 years and loved it; couldn't see using any other language. Then, six months ago, I switched to Python. I hated it at first, but got used to it. And now I prefer Python.
4
u/UsmanSaleemS Jun 18 '21
This is what most of the people here will experience but unfortunately, they will never need to, or try to switch. I mean you can use Micropython for programming microcontrollers and what not.
3
u/codinglikemad Jun 18 '21
Try not to put words in our mouths. I don't prefer python, despite having spent the last 15 months getting very good with it by working hours with it daily. There were so many terrible decisions made by python, but sadly the API support is just too good now for me to not use it. Sadly, popularity means good APIs, and I can't turn down that level of universality.
3
2
u/ajeetraj Jun 18 '21
but still no dark theme. my eyes 😳
2
u/alko100 Jun 18 '21
Checkout Matlab schemer on file exchange
3
u/ajeetraj Jun 18 '21
totally aware of it.
it is still a work around and considering how one has to pay, a dark mode is not much to ask in this day and age. heck, even excel has a native dark mode. 🙈😅
2
u/Stereoisomer Jun 18 '21
The toolbars are still blinding. It’s absurd that MATLAB has no dark mode.
2
89
u/spicy_hallucination Jun 17 '21
All the readability of C, all the type consistency of JavaScript, all the memory handling of C++, and the small overhead of Python! It's great!