beim Importieren von Matlab Strukturen sind ein paar Fragen aufgetaucht:
Importieren in PythonMatlab struct (test.mat):
test.x = [1,2,3]
test.y = [2,3,4]
test.z = [3,4,5]
Code: Alles auswählen
import scipy.io as sio
result= io.loadmat("D:\\test.mat")
Frage. res ist vom type "dict" --> was bedeutet dtype? Was bedeutet 'O'?array([[([[1, 2, 3, ]], [[2, 3, 4]], [[3, 4, 5, ]])]],
dtype=[('x', 'O'), ('y', 'O'), ('z', 'O')])}
Wie kann ich jetzt auf die einzlenen Wert zugreifen? Ich habe folgenden Befehlt gefunden:
Code: Alles auswählen
x = data[0,0]['x']
Vielen Dank für eure Hilfe!