I want to write functions for Octave using Python. Google did not help in figuring out whether it is possible to import / include / all Python modules in Octave in any way and call them as if they were built-in .m functions. I looked at Cython, which creates C source code from Python, but uses Python objects as arguments and return types. Can I use Python modules in Octave?
Unfortunately, there is no easy way to do this.
However, you can always run a Python program and parse the output. Actually
(cmd, ). . , . , , , .
:
output = system ("python /home/user/some_algoritmh.py", 1)
Github, pyoctave, ++ Octave Python. oct oct Python.
Github