Borrar filtros
Borrar filtros

can't run a python function from matlab

3 visualizaciones (últimos 30 días)
Kfir Weissman
Kfir Weissman el 23 de Dic. de 2021
Comentada: Kfir Weissman el 23 de Dic. de 2021
hi, i try to run my order_files.py file.
i already add my venv from anaconda to matlab and when i run "pyenv" in matlab its
found it.
the problem is when i run the function "hel" in the order_files.py file from matlab i get this error:
"Unable to resolve the name py.order_files.hel."
what can i do about that?
  2 comentarios
Anushka Perera
Anushka Perera el 23 de Dic. de 2021
Did you add the current folder to the Python search path? Something like this:
if count(py.sys.path,'') == 0
insert(py.sys.path,int32(0),'');
end
Kfir Weissman
Kfir Weissman el 23 de Dic. de 2021
Which folder?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by