Accesing data in h5 file structure
2 次查看(过去 30 天)
显示 更早的评论
Luis Eduardo Cofré Lizama
2020-9-14
评论: Luis Eduardo Cofré Lizama
2020-9-14
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
0 个评论
采纳的回答
Walter Roberson
2020-9-14
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!