r/AskEngineers • • Mar 16 '19

Mechanical Is it worth learning Python as a Mechanical Engineer?

Greetings, I am a freshman in Mechanical engineering and I've already finished my MATLAB course, and I find coding fun, so I was wondering if I should learn python? But of course I won't waste my time learning it if it isn't beneficial to me. So my fellow MEs, how useful would it be learning python? And what are these benefits. Thank you!

298 Upvotes

165 comments sorted by

View all comments

Show parent comment

19

u/old_sellsword Mar 16 '19

Those are arrays. A matrix in those languages is just an array of arrays.

MATLAB is essentially a big calculator, it makes total sense for it to have 1-indexing. I’ll never argue that MATLAB is a good language for actual programming, but it’s great for quick and dirty data analysis and modeling.

9

u/PM_ME_UR_SWEATERPUPS Mar 16 '19

A matrix really is an array, with a new set of operations to manage it.

Matlab is a very high level language and that is one of the reasons the OP suggested it teaches bad habits. Engineers, of the non-software variety, are terrible programmers. Because if it works, it is good enough.

14

u/SoraDevin Mar 16 '19

As an electrical engineer I feel personally attacked

2

u/MalakElohim Mar 16 '19

Not always true. Mechatronics engineers should be good programmers, depending on the quality of the school. But they should be coding a lot for automation and ML purposes.

1

u/boredcentsless Mar 18 '19

Mechatronics was a subset of mechanical where I went to school, and the programming in mechatronics was more PLC based ladder logic than ML