In MATLAB, .* is the element-wise multiplication operator, while * is the matrix multiplication operator.
For example, consider two matrices A and B:
main.m32 chars3 lines
Using .*:
main.m12 chars2 lines
This would result in element-wise multiplication:
main.m19 chars2 lines
Using *:
main.m11 chars2 lines
This would result in matrix multiplication:
main.m20 chars2 lines
gistlibby LogSnag