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

109 views (last 30 days)
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
Unrecognized function or variable 'pyrunfile'.

Accepted Answer

Julius Muschaweck
Julius Muschaweck on 1 Dec 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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by