Borrar filtros
Borrar filtros

Unrecognized function or variable "Run Python script file from MATLAB"

57 visualizaciones (últimos 30 días)
i use this exmple
Create Python script
def add(a,c):
b = a+c
return b
z = add(x,y)
.when use this scripts in MATLAB its showing error Unrecognized function
Unrecognized function or variable 'pyrunfile'.

Respuesta aceptada

Julius Muschaweck
Julius Muschaweck el 1 de Dic. de 2021
In my Matlab 2021a, I get the same error message.
In the online documentation, it says "Introduced in R2021b". It seems you're using an earlier version than the brand new R2021b.
  2 comentarios
Divyesh pandav
Divyesh pandav el 1 de Dic. de 2021
Editada: Divyesh pandav el 1 de Dic. de 2021
@Julius Muschaweck Good evening sir, how to use this function in MATLAB 2021a?
Julius Muschaweck
Julius Muschaweck el 2 de Dic. de 2021
This function (pyrunfile) is not present in Matlab 2021a.
This help page:
shows how to call user-defined python modules from Matlab R2021a

Iniciar sesión para comentar.

Más respuestas (0)


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