Changed example to derive values from parameters

Copied the derivation of the matrix values from the physical parameters
of the problem.