\frametitle{2D Program: MATLAB Remarks - Dot Operations} \noindent When you replace a loop and a scalar assignment by a vector assignment, MATLAB will generally apply the operations to each element. \vskip 0.1in But certain operators are ambiguous, including *, /, and {\verb|^|}. If A, B and C are vectors or arrays, MATLAB interprets the statement \begin{verbatim} A = B * C; \end{verbatim} as a request for a dot product, matrix-vector multiplication, or matrix-matrix multiplication. If, instead, you simply want an element by element multiplication, you must signal this by writing \begin{verbatim} A = B .* C; \end{verbatim} Similarly, use the ./ and .{\verb|^|} operators if you want the non-vector operators. The dot operator is used extensively in the 2D program!