I am trying to read a Matlab file in Python, but it gives an error. Can anyone help me out?
I run the following code:
from scipy.io import loadmat
data = loadmat('C:\Users\Sakraan\Desktop\stomachpain.mat')
but I get the following error:
data = loadmat('C:\Users\Sakraan\Desktop\stomachpain.mat')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 2-3: truncated \UXXXXXXXX escape