Complete the code to create a structure with a field named 'name'.
person.[1] = 'Alice';
The field 'name' is assigned the value 'Alice' in the structure 'person'.
Complete the code to access the 'age' field from the structure 'person'.
ageValue = person.[1];Accessing the 'age' field of the structure 'person' stores its value in 'ageValue'.
Fix the error in the code to correctly assign the field 'score' in the structure 'student'.
student[1]score = 95;
In MATLAB, the dot (.) is used to access or assign fields in a structure.
Fill both blanks to create a structure 'car' with fields 'make' and 'year'.
car.[1] = 'Toyota'; car.[2] = 2020;
The structure 'car' has fields 'make' and 'year' assigned with 'Toyota' and 2020 respectively.
Fill all three blanks to create a structure 'book' with fields 'title', 'author', and 'pages'.
book.[1] = '1984'; book.[2] = 'Orwell'; book.[3] = 328;
The structure 'book' has fields 'title', 'author', and 'pages' with appropriate values.