Performs a multiplication operation. When applied to matrices, this operator does simple element by element multiplication. For matrix multiplication, see the mult command.
Syntax |
Description |
---|---|
z = x * y; |
Multiply x and y. |
Examples
This example shows the usage of the "*" operator.
x=1:3; y=2:4; ?z=x*y; result: 2 6 12
See Also