Unrecognized function or variable "Run Python script file from MATLAB"
24 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Julius Muschaweck
2021-12-1
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 个评论
Julius Muschaweck
2021-12-2
This function (pyrunfile) is not present in Matlab 2021a.
This help page:
shows how to call user-defined python modules from Matlab R2021a
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!