How to convert a symbolic matrix into matrix polynomial
Show older comments
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.
syms x
N = [1 5-3*x 0;0 1 5-3*x;1 0 x^2-5];
2 Comments
Walter Roberson
on 27 Jul 2023
Is x intended to be scalar or matrix itself?
Isaac
on 27 Jul 2023
Answers (1)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

