Yes, it does returns a nested struct. The problem is there can be variable length sequences in the metadata. For example, a multi-frame object will have PerFrameFunctionalGroupsSequence with an item per frame. In my case, I have a 152 frame image and I want to iterate through the frame sequence. However, it is a structure with eement names: Item_1, Item_2, ... Item_152. How do I iterate through the 152 named elements of the structure? This is what MATLAB function"dicomCollection()" returns. \