billing: 512
test: [3x3 double]
With dot notation, you also can access the value of any field. For example, make a bar chart of the
values in patient.test. Add a title with the text in patient.name. If a field stores an array, then
this syntax returns the whole array.
bar(patient.test)
title("Test Results for " + patient.name)
To access part of an array stored in a field, add indices that are appropriate for the size and type of
the array. For example, create a bar chart of the data in one column of patient.test.
bar(patient.test(:,1))
Structure Arrays
11-3
test: [3x3 double]
With dot notation, you also can access the value of any field. For example, make a bar chart of the
values in patient.test. Add a title with the text in patient.name. If a field stores an array, then
this syntax returns the whole array.
bar(patient.test)
title("Test Results for " + patient.name)
To access part of an array stored in a field, add indices that are appropriate for the size and type of
the array. For example, create a bar chart of the data in one column of patient.test.
bar(patient.test(:,1))
Structure Arrays
11-3
