Running Python code in Matlab?… here is a solution to the problem.
Running Python code in Matlab?
I
have some python code (some functions) and I want to implement it in a larger MATLAB program! What should I do? Any help would be useful….
Solution
You should avoid this. Use one of them – preferably Python.
But if you have to use both, you can try this:
http://github.com/kw/pymex (scroll down to view the readme).
Disclaimer: This is what I wrote. Getting it to compile and work can be a bit difficult, especially if you’re on Windows (having a precompiled win32 binary in the download area might work). I don’t have access to a lot of different machines with Matlab, so I haven’t been sure yet.