Running MATLAB engine from MATLAB
古いコメントを表示
Currently I work on a project where I have to use the MATLAB engine in Python. This Python module I want to use in MATLAB. I.e. I start a Python module in MATLAB which starts the MATLAB engine and calls a function in MATLAB which return value then is processed in my Python module. The return value from the Python module then should be further processed in MATLAB.
I get this error message:
Error using enginesession>__init__ (line 8)
Python Error: EngineError: MATLAB process session cannot be initialized.
Error in __init__><module> (line 82)
_session = EngineSession()
Error in __init__>import_module (line 37)
__import__(name)
I get a similar error if I try to load the MATLAB engine from MATLAB by using
py.importlib.import_module('matlab.engine')
Is there a way to solve my issue or is this just simply not possible with the MATLAB engine?
4 件のコメント
Stephan
2018 年 10 月 18 日
Could you provide your python code and data (If needed) to run the code?
In which step of your process do you get an error? Last step? First? Please clarify.
Kevin Chng
2018 年 10 月 19 日
What version of python are you using?
Hadi Salimi
2021 年 3 月 11 日
Did you find any soloutions regarding your issue?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Call MATLAB from Python についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!