I have a .mat file, which contains two variables, x and y. x is a hexadecimal number matrix, the type of whose elements is string and y is an int vector. I import scipy.io as sio and use sio.loadmat('data.mat') to load the .mat file. However, x becomes a zero matrix and the type of its elements is numpy.float64. Is there any method that I can correctly load the hexadecimal number variable saved in a .mat file?
- You might mix hexdecimal and int. Hexdeciamal is a format to read data, int is a type of data.RedEyed– RedEyed2017-09-09 14:11:53 +00:00Commented Sep 9, 2017 at 14:11
- You can print the data as hex: stackoverflow.com/questions/9448029/…Joe– Joe2017-09-09 14:14:35 +00:00Commented Sep 9, 2017 at 14:14
Add a comment |