Utilization of MATLAB resources is made possible by a systematic analysis of some features of the basic probability model. In particular, the minterm analysis of logical (or Boolean) combinations of events and the analysis of the structure of simple random variables with the aid of indicator functions and minterm analysis are exploited.

A number of standard features of MATLAB are utilized extensively. In addition to standard matrix algebra, we use:

- Array arithmetic. This involves element by element calculations. For example,
if
`a, b`

are matrices of the same size, then`a.*b`

is the matrix obtained by multiplying corresponding elements in the two matrices to obtain a new matrix of the same size. - Relational operations, such as less than, equal, etc. to obtain zero-one matrices with ones at element positions where the conditions are met.
- Logical operations on zero-one matrices utilizing logical operators
*and*,*or*, and*not*, as well as certain related functions such as*any*,*all*,*not*,*find*, etc.*Note*. Relational operations and logical operations produce zero-one arrays, called*logical arrays*, which MATLAB treats differently from zero-one*numeric arrays*. A rectangular array in which some rows are logical arrays but others are not is treated as a numeric array. Any zero-one rectangular array can be converted to a numeric array (matrix) by the command`A = ones(size(A)).*A`

, - Certain MATLAB functions, such as
*meshgrid, sum, cumsum, prod, cumprod*are used repeatedly. The function*dot*for dot product does not work if either array is a logical array. If one of the pair is numeric, the command C = A*B' will work.