![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6896942_1524667500545_DEF.jpg)
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