I have a bunch of Matlab structures which have been generated from matlab R2018b version 9.5. The structure contains 3 fields:
- A Matrix of double size: 6942x6092
- A matrix of double size: 6942x1
- A matrix of cell size: 1x6092 (the content of the cells are string)
I would like to find a way to load this structure and access the three different elements in python 3.7. I have tried many ways but I never managed to load the structure and been able to access the 3 elements of the structure. For reproducing the structure in matlab:
struct.values = ones(6942,6092);
struct.dates = ones(6942,1);
struct.id = cell(1,6092);
struct.id(:) = {'x1'};
save('struct','struct');
It is then saved as a .mat file.