If the dot product is equal to zero then u and v are perpendicular.
Mat lab dot product of two vectors.
Recall that given vectors a and b in space the dot product is defined as.
The scalar output y is equal to the matlab operation y sum conj u1 u2 where u1 and u2 represent the input vectors.
The scalar dot product of two real vectors of length n is equal to u v i 1 n u i v i u 1 v 1 u 2 v 2.
The dot product block generates the dot product of the input vectors.
U n v n.
We can conclude that if the inner product of two vectors is zero the vectors are orthogonal.
For example let s say that we have vectors u and v where u 1 0 and v 2 2.
A vector is an ordered n tuple which may be represented as a matrix in the form of a column vector nxi matrix or a row vector 1x matrix.
Dot product of two vectors a a1 a2 an and b b1 b2 bn is given by a b ai bi dot product of two vectors a and b is calculated using the dot function.
This relation is commutative for real vectors such that dot u v equals dot v u.
B a b cos theta we will use this formula later to find the angle theta.