times

Perform multiplication on a list of arguments from left to right, applied to matrices on an element-wise basis. Equivalent to the .* operator.

Syntax

R = times(x,y)

R = times(x,y,...)

Inputs

x,y
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
The product result.
Dimension: scalar | vector | matrix

Examples

Scalar example:
R = times(2,4)
R = 8
Element-wise matrix example:
R = times([2,1;3,1],[1,2;3,4])
R = [Matrix] 2 x 2
2  2
9  4