How to convert a symbolic matrix into matrix polynomial
11 views (last 30 days)
I have a matrix with its elements as polynomials, such as the following N matrix. I was wondering whether it would be possible to convert it into a matrix polynomial expression like N0 + N1*x + N2*x^2? My idea is to retrieve the matrices N0, N1, N2. I would deeply appreciate any pointers regarding this. Thank you.
N = [1 5-3*x 0;0 1 5-3*x;1 0 x^2-5];