u=[2,3,-4]; v=[1,-5,8]; u+v 5*u -v 2*u-3*v u.*v; k=sum(u.*v); disp(k,'dot product of the two vectors') l=norm(u); disp(l,'norm or length of the vector u')