Assuming that the variable is a struct and the fields are numerical arrays, the following code demonstrates how to create vectors t, c, and f using the dot notation.
main.m191 chars10 lines
In this example, variable is a struct with three fields: field1, field2, and field3. The dot notation is used to access the fields of the struct. To create the vectors t, c, and f, the values of each field are assigned to a separate variable using the equals sign. The resulting vectors contain the values of the original fields in the struct.
gistlibby LogSnag