Working With Variables


Arrays


Figure 1

Accessing a single value

Figure 2

Accessing a single value

Figure 3

Accessing multiple rows

Figure 4

Accessing multiple columns

Figure 5

Accessing a submatrix

Figure 6

Accessing strided columns

Figure 7

Accessing strided rows and columns

Plotting data


Figure 1

Operations Across Axes

Figure 2

Heat map

Figure 3

Average inflammation

Figure 4

Maximum inflammation

Figure 5

Minumum inflammation

Figure 6

Max Min subplot

Writing MATLAB Scripts


Repeating With Loops


Figure 1

This process is illustrated below: debugger-demo


Figure 2


Figure 3


Figure 4


Making Choices


Creating Functions


Figure 1

function-definition

Defensive Programming


Figure 1

Overlapping Ranges