Paul Jordan
Followers: 0 Following: 0
Feeds
已回答
Accessing various field names deep in a structure.
A.B.C.D = 50; s = {'B','C','D'}; getfield(A,s{:}) ans = 50
Accessing various field names deep in a structure.
A.B.C.D = 50; s = {'B','C','D'}; getfield(A,s{:}) ans = 50
6 years 前 | 2