Importing codes from Matlab to Python. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Importing codes from Matlab to Python.

I have a code that includes some user inputs, for loops, and plot graphs. I want to move it to Python. What is the best way to do it? Do I need to write all codes line by line in? Thank you for answers.

22nd Mar 2017, 9:16 PM
acandas
acandas - avatar
2 Answers
+ 3
Dunno if there is any way to port it. I had kind of the same problem andbwe implemented "matlab code" to python usin numpy library.
22nd Mar 2017, 10:47 PM
Alessio Meloni
Alessio Meloni - avatar
+ 3
I've put matlab code in quotes to make sure any programmer won't kill me calling it so 😀
22nd Mar 2017, 10:50 PM
Alessio Meloni
Alessio Meloni - avatar