Accesing data in h5 file structure
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Luis Eduardo Cofré Lizama
am 14 Sep. 2020
Kommentiert: Luis Eduardo Cofré Lizama
am 14 Sep. 2020
Dear All, I am trying to access data in a .h5 file, which is in a structure. At a certain level I want to access the data by selecting a sensor based on its number (see image below). For example I want to select Name '/Sensors/6814', how could acces it by creating a sting or so?
Cheers
Eduardo
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/360460/image.png)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Sep. 2020
names = {hinfo.GroupHierarchy.Groups(2).Groups.Name};
[found, idx] = ismember('/Sensors/6814', names);
if found
g = hinfo.GroupHierarchy.Groups(2).Groups(idx);
else
g = [];
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!