Dan February 2016
In MATLAB, matrices are not limited to 2 dimensions (i.e. only rows and columns), but can have many higher dimensions.
The third input to the
rand function is just telling
rand the size of the third dimension that you want. By default it is
1, but in your case it will instead be
In general, the nth input to
rand will be the size of the nth dimension of the matrix of random numbers it produces.