필터 지우기
필터 지우기

Call matlab function from python coroutine

조회 수: 2 (최근 30일)
Max Ehrlich
Max Ehrlich 2017년 1월 19일
편집: Soumya Saxena 2017년 1월 27일
I am using Matlab 2016b to compile some code into a python library. This compiled code is then loaded into a python web server for execution at some later time. The code that eventually executes the matlab module is a coroutine using the new asyncio features of python 3.5. Whenever this module tries to call the matlab code, it just hangs on waiting for the FutureResult.result() function. The same code, when called from a normal python function, works fine. Is there any workaround for this or is it unsupported by Matlab?

답변 (1개)

Soumya Saxena
Soumya Saxena 2017년 1월 27일
편집: Soumya Saxena 2017년 1월 27일
I understand that upon calling the matlab function from the python module, the program hangs. Could you share the code that is causing this issue so that I can reproduce it ?
A small reproduction code that illustrates this issue, but without use of the webserver would greatly help.

카테고리

Help CenterFile Exchange에서 Python Package Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by