[prev] [prev-tail] [tail] [up]
Two calculate the scalar product in Matlab the dot function is used.
Create two vectors:
Calculate the scalar product:
[prev] [prev-tail] [front] [up]