MATLAB: How to call Python Script in Matlab

MATLABpython

Hi,
I want to call python script into Matlab for further processing. I watched couple of threads mentioned at https://stackoverflow.com/questions/1707780/call-python-function-from-matlab but always gets an error when do this in command prompt
>> py.ReadIFSLog
Unable to resolve the name py.ReadIFSLog
I have MATLAB 2020a. What am I doing wrong?

Best Answer

I understand that you are trying to call your own python script from MATLAB command window.
The syntax that you are using is for calling python built-in modules from MATLAB, not scripts. Please have a look at the answer posted for a similar question.