Unrecognized function or variable "Run Python script file from MATLAB"
24 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Divyesh pandav
le 1 Déc 2021
Commenté : Julius Muschaweck
le 2 Déc 2021
i use this exmple
Create Python script addac.py
def add(a,c):
b = a+c
return b
z = add(x,y)
.when use this scripts in MATLAB its showing error Unrecognized function
pyrunfile("addac.py","z",x=3,y=2)
Unrecognized function or variable 'pyrunfile'.
0 commentaires
Réponse acceptée
Julius Muschaweck
le 1 Déc 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 commentaires
Julius Muschaweck
le 2 Déc 2021
This function (pyrunfile) is not present in Matlab 2021a.
This help page:
shows how to call user-defined python modules from Matlab R2021a
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!