The inner product of two column-vectors x and y (§5.9) is conveniently computed in matlab as
xdoty = y' * x