Complete the code to create a structure array with field 'name'.
person = struct('[1]', 'Alice');
The field name 'name' is used to store the person's name in the structure.
Complete the code to add a second element to the structure array.
person(2) = struct('[1]', 'Bob');
To add a second element with the same field, use 'name' as the field.
Fix the error in the code to correctly create a structure array with fields 'name' and 'age'.
person = struct('name', 'Alice', '[1]', 30);
The second field should be 'age' to store the person's age.
Fill both blanks to create a structure array with fields 'name' and 'age' for two people.
people(1) = struct('[1]', 'Alice', '[2]', 30);
The first field is 'name' and the second is 'age' to store the correct data.
Fill all three blanks to create a structure array with fields 'name', 'age', and 'height' for two people.
people(2) = struct('[1]', 'Bob', '[2]', 25, '[3]', 180);
The fields must be 'name', 'age', and 'height' in that order to match the data.