Effacer les filtres
Effacer les filtres

Accesing data in h5 file structure

1 vue (au cours des 30 derniers jours)
Luis Eduardo Cofré Lizama
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

Réponse acceptée

Walter Roberson
Walter Roberson le 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
  1 commentaire
Luis Eduardo Cofré Lizama
Thanks for the quick reply. It worked!.
cheers!
eduardo

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by