Method on @sym: times (x, y)
Operator on @sym: x .* y

Return Hadamard product (element-wise multiplication) of matrices.

Example:

syms x
A = [2 x];
B = [3 4];
A.*B
  ⇒ ans = (sym) [6  4⋅x]  (1×2 matrix)

For “matrix expressions” such as matrices with symbolic size, the product may not be evaluated:

syms n m integer
A = sym('A', [n m]);
B = sym('B', [n m]);
A.*B
  ⇒ ans = (sym) A∘B

See also: @sym/power.

Package: symbolic