Skip to content

times

Elementwise multiplication

times(A, B)

  • A and B should be arrays of the same sizes.
  • The output is an array containing elements of A multiplied by the corresponding elements of B.
  • It gives the same result as A.*B.
  • If one of the arguments is a scalar, this scalar would be expanded to a constant array having the same size as the other input argument.