(How) Can I dynamically access nested fields in Matlab? I was thinking about a test case like this one:
a = struct; a.foo.bar = []; place = {\'foo\', \'bar\
One solution I am not very happy with, mainly because it lacks the elegance of the .( ) dynamical field names syntax, is:
.( )
getfield(a, place{:})