If defining variable for the first time through field access, the left-hand-side components cannot contain index

Post Reply
fyousefi
Posts: 3284
Joined: Thu Feb 25, 2021 4:49 pm
Contact:

If defining variable for the first time through field access, the left-hand-side components cannot contain index

Post by fyousefi »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests