0

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?

2
  • You might mix hexdecimal and int. Hexdeciamal is a format to read data, int is a type of data. Commented Sep 9, 2017 at 14:11
  • You can print the data as hex: stackoverflow.com/questions/9448029/… Commented Sep 9, 2017 at 14:14

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.