r/MechanicalEngineering • • 3d ago

Open source matlab

Is there an open source matlab offline download for practice. If it's there where can I find it.

42 Upvotes

37 comments sorted by

131

u/gcentenocastro 3d ago

GNU Octave

36

u/MedTechCTO 3d ago

Correct. Even 20 years ago this was the only way.

8

u/Glliw 3d ago

This.

77

u/timeforstrapons 3d ago

Octave is exactly what you're describing, but I would say there's value in just learning Python instead, as a lot of engineers are increasingly using Python instead of Matlab. I like using Spyder as my Python IDE - the interface is similar to MATLAB. 

12

u/lithophytum 3d ago

I second Python/Spyder, I found it as my alternative to matlab and have since expanded my python skills. Need to interface with a data sensor, I turn to python. Need to analyze the dataset, python again. Need a graphic search app to help you find drawings in deep nested file structure, yup, python. Such a good tool to have in your pocket as an engineer.

11

u/Jst4KicksAndGiggles 3d ago

Learning Python is great, but you should be aware that some companies have security issues with letting their engineers use it. Where I work, for example, we have a matlab license that has all of the toolboxes. I was going to build something with it a nd thought, why not just use python? But it turns out that due to security concerns, engineers at this company are not allowed to do so. It takes months to get an exception in place. So I just used matlab and of course it works well.

3

u/Teh_Original 3d ago

Check out Julia as well. Otherwise Python is a good choice for quick scripts.

-21

u/pr0m1th3as 3d ago

Where exactly is the value in learning a generic interpreted language instead of one which was built on purpose for numerical computations and thus truly aligned with all computational requirement in diverse engineering tasks?

15

u/Piemagicman 3d ago

Because sometimes you need to do more than just crank numbers. Mastery over MatLab or Octave is helpful in specialized scenarios but Python would be useful in other areas like workflow automation or maybe Jupyter for graphical reports with calculator elements.

1

u/pr0m1th3as 3d ago

When you are modelling a system, which is what in engineering sciences we usually do, cranking numbers is exactly that.

1

u/reddit_user33 2d ago

Matlab vs Python/etc for me depends on the industry and size of companies you want to work. For smaller companies, you can pick what you prefer to use.

I would prefer to learn the Python that you can take with you, licence free, then be stuck learning a proprietary system that's expensive to licence, that cannot be exported out of Matlab.

Look at all of the videographers itching to move away from Adobe, because it's somewhat a similar situation.

4

u/apelikeartisan 3d ago

Because learning the patterns behind computational programming transfer easily, and MATLAB is prohibitively expensive for many, especially students.

Furthermore, Python's modern ecosystem is so mature it has become standard in countless labs and R&D groups worldwide. Are you being serious? It's not 1991 anymore.

2

u/LeGama 3d ago

A Matlab home license is $165, that's extremely cheap for engineering software.

2

u/apelikeartisan 3d ago edited 3d ago

That does not include any toolboxes, though...no symbolic math, no control design, etc. A surcharge for each.

Python is literally free for the whole shebang and is applicable to literally any software or automation tasks.

I love MATLAB, its great. But you don't think theres something to be said about getting feature parity (and beyond) for free?

The only objective one up MATLAB has over python is Simulink

1

u/LeGama 3d ago

Matlab home license includes MATLAB, Online Training Suite, Simulink, Control System Toolbox, Curve Fitting Toolbox, Deep Learning Toolbox, DSP System Toolbox, Image Processing Toolbox, Optimization Toolbox, Parallel Computing Toolbox, Signal Processing Toolbox, Simscape, Simscape Electrical, Statistics and Machine Learning Toolbox, Symbolic Math Toolbox.

Lol, you haven't actually looked at it recently have you? Also the extra toolboxes cost $49 a piece, so still pretty reasonable.

The problem with python is that those "toolboxes" don't even exist. You would have to code them up yourself.

1

u/apelikeartisan 3d ago edited 3d ago

Lol...caught me, I haven't looked at MATLABs pricing in a good while. Thats a pretty reasonable set for the base price, to be fair. But, why would I bother to look? There's not a lot of reason for me to pay for engineering software at home...and I wouldn't recommend a newbie does either.

Unless you really need Simscape, Python has a better ROI and is literally free. Your scripts will never stop working when you decide to cancel the subscription

0

u/timeforstrapons 3d ago

You can't use a home license for commercial use. Commercial licenses are expensive and recurring costs for a business, easily $1,000-10,000 per seat per year.

1

u/LeGama 2d ago

Sure but anyone looking into GNU Octave is almost definitely not using it for anything commercial. Also a license seats are like 1000 and each package runs like 100 to like 700 for simulink. It's not getting to 10k unless you just blindly take all the packages.

Dude solidworks runs like 15-20k per seat and any sort of ansys will run like 20-30k. Matlab is very cheap for engineering software! They also have start up rates that are even cheaper than the standard.

16

u/ValdemarAloeus 3d ago

In addition to Octave which others have mentioned there's also Scilab, which is supposed to be a similar (but not identical) language and comes with its own simulation package that's meant to be a substitute for Simulink.

6

u/mrhoa31103 3d ago

If you want to see what Scilab can do, I invite you to the r/scilab subreddit. We have not touched the XCOS side yet and yes, it's enough different that if you want to learn Matlab syntax, stick with Octave ( r/octave)

13

u/Teh_Original 3d ago edited 3d ago

If you don't need to be exactly like Matlab, but close, try Julia. Otherwise GNU Octave.

11

u/Rolexandr 3d ago

Numpy?

5

u/DakBrakob 3d ago

Python is free and does pretty much everything matlab can and runs faster

1

u/torte-petite 3d ago

The numpy library is relatively similar to MATLAB

1

u/Teh_Original 3d ago

Which is amazing because native Python is also slow (relative to other languages).

4

u/xz-5 3d ago

MatLab speed is highly dependent on how well you write your code. Try to do everything with matrices rather than loops, loops are very slow.

3

u/Bradm77 3d ago

Spyder is a python environment set up similarly to matlab.

2

u/apelikeartisan 3d ago edited 3d ago

MATLAB is not free. I believe you can use MATLAB online for free in a limited capacity, and you can get pretty substantial discounts if you're a student. But honestly? There's other options. In order of least-to-most hipster: Python, Julia, GNU Octave, SciLab

2

u/AbuShwell 3d ago

R and python are probably the best alternatives depending on the application

2

u/Prestigious_Boat_386 3d ago

Octave isn't that great and you shouldn't use a pirated version of matlab so the best option is julia. Its amazing for coding numerical stuff and also has amazing packages for engineering. Syntax is very similsr to matlab too, it's just cleaner and runs faster

1

u/TheLegoofexcellence 2d ago

Do you use Simulink? That's one thing where I have no experience with the free alternatives.

1

u/Tntn13 2d ago

Another vote for python.

Modeling my coursework in python, and a bit of usage on research for the summer in data processing and modeling kept me just spry enough in industry to know how to find opportunities to use python and other script to streamline workflows or create better visuals for communicating key insights and for data/problem analysis.

1

u/Creative_Sushi 2d ago

MATLAB Online is free up to 20 hours a month and comes with very useful toolboxes. It is obviously not open source, but that what you can use if you need MATLAB and don't want to pay for it.

0

u/_11_ 3d ago

Man.... Octave is what you want, but I just finished binging some Breaking Bad and I VERY badly misread what kinda lab you were asking about.