MATLAB: Undefined function ‘isfile’ for input arguments of type ‘char’.

type char

I've receiveda code file and while running I recieve the following error. I don't know why there should be such a problem! What should I do to fix it?
Undefined function 'isfile' for input arguments of type 'char'.

Best Answer

https://www.mathworks.com/help/matlab/ref/isfile.html , released in 2017b so if you’re using prior release won’t work. And see those examples how to properly use it.
Related Question