Are there any up-to-date MATLAB to Python converters?

18 ビュー (過去 30 日間)
Peter Tillema
Peter Tillema 2021 年 9 月 2 日
回答済み: Taylor 2024 年 4 月 15 日
Hello there! At my work currently we use a lot of MATLAB code. However, recently, the question popped up if it's possible to slowly migrate to Python, and it was my task to figure out if it's possible to migrate all the scripts automatically. After a lot of research, I sadly couldn't find any up-to-date MATLAB -> Python converters. I know this question has been asked before, so let me state my findings:
  • SMOP - looks pretty good, although it is still a WIP and doesn't have many features.
  • OMPC - this seemed to be pretty good for its time, but it looks like the repository doesn't exists anymore, and a GitHub mirror was last updated back in 2010, so not very helpful at all.
  • Mat2py - this was developed for Python 2.5, which is clearly outdated nowadays. Plus, it looks like it's not very extensive
  • matlab2python - a wrapper around SMOP plus a little bit more? No idea if it works properly
So, my question is, are there any up-to-date MATLAB to Python converters/compilers? Or is there something under active development I can maybe help with? If not, I might give it a try myself, since it looks very promising!
Note that I'm not looking for wrappers which basically uses the MATLAB API but something entirely independent of MATLAB.
Thanks in advance!
  1 件のコメント
Weiping Wang
Weiping Wang 2024 年 4 月 15 日
Hi Peter,
Can I ask if you found any live converters?
Thanks!
Chao

サインインしてコメントする。

回答 (1 件)

Taylor
Taylor 2024 年 4 月 15 日
You can compile MATLAB code/functions directly to a Python Package using MATLAB Compiler. https://www.mathworks.com/help/compiler_sdk/gs/create-a-python-application-with-matlab-code.html

カテゴリ

Help Center および File ExchangePython Package Integration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by