Home size of struct field from ncinfo
 I want to get the size of a certain field inside a structure. For example the size of the field Name inside the field Dimensions of the struct obtained from ncinfo: finfo = ncinfo('example.nc'); finfo.Dimensions.Name >>ans = x ans = y ans = z  Just using size causes an obvious error: size(finfo.Dimensions.Name) Error using size Too many input arguments. How can I do it in an alternative way? Also, I would like to save the content of finfo.Dimensions.Name in a separate array or struct. But I get a similar error. For example: a.b=finfo.Dimensions.Name  returns the error: Illegal right hand side in assignment. Too many elements.