MATLAB: Multiplication of a matrix element wise with a polynomial

matrix arraymatrix manipulation

How do I multiply a matrix element wise with a polynomial(it's again a matrix of different order) I want to multiply each element in the matrix, L=eye(2,4) with a polynomial of (s-3)

Best Answer

syms s
L=eye(2,4)
p=s-3
out=L*p