Access to nested structs

4 views (last 30 days)
Frank
Frank on 11 Nov 2020
Edited: Stephen23 on 11 Nov 2020
I have a struct say a.b.c.d, but want to avoid hard coded 'b.c.d'.
Ist there an easy way to access the data dynamically, for example with a cell field like {'b' 'c' 'd'}?

Accepted Answer

Stephen23
Stephen23 on 11 Nov 2020
Edited: Stephen23 on 11 Nov 2020

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!