Scalars
A scalar is just a 1-by-1 matrix.
Scalar operations are just special cases of matrix operations, i.e., operations on 1-by-1 matrices.
A scalar operand s is treated as a matrix with the same dimensions as the other operand and the value s everywhere.
>> 5 + ones(2,3)
ans =
6 6 6
6 6 6
>> ones(2,3) ./ 2
ans =
0.5000 0.5000 0.5000
0.5000 0.5000 0.5000