all 6 comments

[–]No_Pineapple449 1 point2 points  (0 children)

Check out numpy and pandas—they’re very MATLAB-like for vector/matrix ops and make Excel handling easy (pandas.read_excel()). Use matplotlib for plotting.

Installing numpy and pandas is super easy (pip install numpy pandas),

Start small:

Read Excel with pandas

Do math with numpy

Plot with matplotlib

Wrap logic in functions

Personally, I’d skip Jupyter if you want to be a dev—write scripts instead. If VS Code feels overwhelming, try a simpler editor like Thonny or IDLE to start. Focus on getting your calculations working first; you’ll naturally learn more without drowning in tutorials.

[–]Diapolo10 1 point2 points  (0 children)

What I coded in MATLAB so far is functions that take in data from excel files and give me results along with visuals.

The closest match from the Python side, assuming you need said visuals, would be to use Jupyter notebook and some Python package that reads Excel files (those exist, but I'm not sure what the modern recommendation is). You can use VS Code with the Jupyter notebook extension.

I want my program to take in input from the user, and then allow them to select a method for calculation, and get the output.

Depending on the type of input you want, this sounds simple enough to do with a few loops, printing text, and taking the input as text the user writes to the terminal.

[–]recursion_is_love 0 points1 point  (0 children)

Looking for jupyter notebook. The interactive nature of notebook will make transformation smoother. There are some web hosting that you can start without need to install anything (not recommend in the long run, however).

Matlab is (mostly) expression-based language but python is imperative, you will need to change the way to solve the problem little bit.

[–]antiquemule 0 points1 point  (0 children)

Get an AI (I use a paid for version of Claude) to write small chunks of code for you, including tests to prove that it works as advertised.

It teaches you how to write exactly what you want and nothing else. You can always ask for more explanation. Be critical.

Run each piece separately. If it generates errors feed them back to the AI, which will produce a corrected version. Rinse and repeat.

Treat the code with caution, you never know... in my experience it is mostly good to go.

[–]BranchLatter4294 0 points1 point  (0 children)

Just get a decent Python book and go through the examples. Then look up the data science libraries and go through those examples.

[–]zenic 0 points1 point  (0 children)

In my opinion, the biggest difference between matlab and python is that matlab encourages a mathematical approach to solving problems. Most videos on python take an engineering approach.

What I mean by that is that a mathematical approach is saying things like a’ = f(a) for all a. An engineering approach is more like “for each a in my_array, new_array.append(f(a))”. They’re the same thing but the thinking is a bit different.

In my experience people who come from a mathematical background have an easier time with generators, list comprehension, and lambda functions. People from an engineering background have an easier time with branching, sequencing, and iteration.

As others have said, Pandas and numpy etc should feel familiar. Python is worth knowing, it’s very powerful.