Running matlab/simulink in python

1 visualización (últimos 30 días)
Afraz MEHMOOD CHAUDHRY
Afraz MEHMOOD CHAUDHRY el 25 de Ag. de 2020
Comentada: Afraz MEHMOOD CHAUDHRY el 28 de Ag. de 2020
I am trying to call simulink file in python through some function from python. But when I call matlab function in python, the function does not pass input parameters to simulink file and I receive following error:MatlabExecutionError: TIMESPAN parameter must be a real scalar or vector. However, it behaves perfectly when I work only in matlab environment.
  2 comentarios
Harshendra Shah
Harshendra Shah el 28 de Ag. de 2020
Have you checked MATLAB Engine API for Python?
Afraz MEHMOOD CHAUDHRY
Afraz MEHMOOD CHAUDHRY el 28 de Ag. de 2020
its working now. I was not following syntax of python thats why I was getting an error. Thanks

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Call MATLAB from Python 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