out = dotprod (x, y)
DOTPROD Vector dot product. A function that takes the dot product of two row vectors X and Y. If X and Y are matrices, each row of each matrix is considered to be a vector. Note that X and Y must be the same size. Superceded by DOT in recent versions of MATLAB.