CASTI-89 TITANIUM · CALC89
.*
Multiplies two matrices element by element, unlike the normal matrix product.
Syntax
Matrix1 .* Matrix2
- Group
- Matrix
- Arguments
- Takes two matrices of the same dimensions.
- Availability
- Included
Example
| Input | Result |
|---|---|
| [1,2;3,4].*[1,2;3,4] | [[1,4][9,16]] |
Typing [1,2;3,4].*[1,2;3,4] on the home screen and pressing ENTER returns [[1,4][9,16]].
Related commands
- .+Adds element by element: each entry of the first matrix is added to the matching entry of the second, or to a single value.
- .-Subtracts element by element: the matching entry of the second matrix, or a single value, is subtracted from each entry.
- ./Divides element by element: each entry is divided by the matching entry of the second matrix, or by a single value.
- .^Raises each entry of a matrix to a power element by element, instead of computing a matrix power.
- augment(Joins two matrices side by side, appending the columns of the second to the first.
- charPoly(Returns the characteristic polynomial of a square matrix in the given variable.
- colAugment(Stacks two matrices vertically, appending the rows of the second below the first.
- colDim(Returns the number of columns of a matrix.