Executing Python script in MATLAB?

1 visualización (últimos 30 días)
Abhishek Sharma
Abhishek Sharma el 7 de Ag. de 2021
Editada: Abhishek Sharma el 9 de Ag. de 2021
Is there any way to run a full python script ? I am not looking to just call a function written in python.

Respuesta aceptada

Yongjian Feng
Yongjian Feng el 7 de Ag. de 2021
What is the difference between a full python script and a function written in python? They are the same in my opinion.
  8 comentarios
Abhishek Sharma
Abhishek Sharma el 9 de Ag. de 2021
Editada: Abhishek Sharma el 9 de Ag. de 2021
I think it's not able to import the modules.
Yongjian Feng
Yongjian Feng el 9 de Ag. de 2021
  1. Is pandas installed properly in python? Can you use python to import it without problems?
  2. Figure out where from it is imported, then inside matlab, call setenv (https://www.mathworks.com/help/matlab/ref/setenv.html) to set PYTHONPATH to add that location to it.
If you don't use virtualenv, this can be done easily.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by