Member of the vector class.
c = dot(a, b)
c = dot(a, b, dim)
Computes the dot product of two vectors.
| Name | Description | ||||
| a | Specifies a vector or matrix. | ||||
| b | Specifies a vector or matrix. b must be the same size as a. | ||||
| dim | Specifies the order in which LabVIEW computes the dot product for matrices. dim is a scalar that accepts the following values.
|
| Name | Description |
| c | Returns the dot product of a and b. c is a scalar or vector. |
A = [1, 2, 3]
B = [0, -3, 2]
C = dot(A, B)