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
finfo = ncinfo('example.nc');
size causes an obvious error:
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:
returns the error:
Illegal right hand side in assignment. Too many elements.