Relative Content

Tag Archive for pythonnumpymatlab

How can I reproduce Matlab file reading with Python and Numpy for decoding a .dat file?

I have a Matlab script that reads an encoded .dat file, decodes it and saves it. I was trying to translate this into Python using numpy. I’ve found that for the same file, I get different output results ( the python numbers make no sense). The code initially ran as part of a script reading from a serial port, hence the structure of the data.