If defining variable for the first time through field access, the left-hand-side components cannot contain index
Posted: Mon Mar 08, 2021 7:51 am
If defining variable for the first time through field access, the left-hand-side components cannot contain indexing parentheses, and all left-hand-side components except for the final field must be scalar. To create an array of structs, use ''repmat'' or the ''struct'' function.