You can create a matrix with desired values with the following code:
main.m255 chars14 lines
This will create a 3x4 matrix where the values of each element follow the equation 2r-3c. You can change the values of nRows
and nCols
to create matrices of different sizes.
gistlibby LogSnag