How to Solve NameError: name 'loadmat' is not defined -- mat4py

Solution: Import the 'loadmat' module

To Solve the error, add the following line to the top of your code.

from mat4py import loadmat

 

For more information:
Python mat4py loadmat