Dividing two vectors of different sizes
7 views (last 30 days)
Show older comments
Aleem Andrew on 15 Mar 2021
Commented: Matt J on 15 Mar 2021
If you have two vectors a = [1 2 1]; b = [1 1] that represent polynomials can you divide a by b to get [1 1] as the answer, since (s^2+2s+1)/(s+1) = s+1? I know you can divide the vectors by first converting them to polynomials using poly2sym(a)/poly2sym(b) and then extract the coefficients but is there a simpler way?
Edited: Matt J on 15 Mar 2021
Yep. Just use deconv.
More Answers (0)
Find more on Polynomials 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!