Deploy Python code in MATLAB

4 visualizaciones (últimos 30 días)
Kamilla K.
Kamilla K. el 30 de Nov. de 2021
Respondida: Hiro Yoshino el 30 de Nov. de 2021
I am deploying this simple code and starting the .exe on different end-user computers:
disp('Hello Matlab')
py.print('Hello Python')
Most of them get:
Hello Matlab
Unable to resolve the name py.print.
Is it possible to start stand-alone MATLAB apps using Python functions without a Python installation on the end-user computer?
I read a lot of questions and answers around this task, but did not find a clear answer, if Python has to be installed for the end-user. So thank you in advance for your help.

Respuesta aceptada

Hiro Yoshino
Hiro Yoshino el 30 de Nov. de 2021
MATLAB compiler supports most of MATLAB commands, i.e., Python functions are out of this range.
You can make MATLAB app that calls the python scripts placed in the folder that the app can access to. This way, you need to have Python installed on the computer where the exe app is placed.

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by