I am on a project on machine learning. trained the data in matlab R2015a and obtained a file abc.m . I get the expected result from matlab file while giving input from the matlab command window. i have developed the interface in pyqt5 and got the file in python . Want to import .m file to python for usage.
have Anaconda 2.4.1 installed on my computer with python 3.5. working on Windows 8.1
Can anyone help ? totally stuck with the project.
My code is as follows :
import scipy.io as sio
import numpy as np
from sklearn import preprocessing
ab = sio.loadmat('latest.m')
......
But i get the following error :
Traceback (most recent call last):
File "test.py",line 8,in <module>
ab = sio.loadmat('latest.m')
File "C:\anaconda\Lib\site-packages\scipy\io\matlab\mio.py",line 58,in mat_reader_factory
mjv,mnv = get_matfile_version(byte_stream)
File "C:\anaconda\Lib\site-packages\scipy\io\matlab\miobase.py",line 241,in get_matfile_version
raise ValueError('Unknown mat file type,version %s,%s' % ret)
ValueError: Unknown mat file type,version 111,114