In the polynomial division, such as b(x)/a(x)=q(x)+r(x)/b(x) or
where we denote length of b,a,q,r as Lb,La,Lq,Lr, respectively.
Then using the built-in function,
We get our desired answers: q,r,
However, it is Lr=Lb instead of Lr=La-1 for La<Lb.
The unwanted data ahead the desired r should be completely eliminated, even they are very very small..
The presented function
will resolve this problem,
Feng Cheng Chang (2021). Simplifying the built-in function [q,r]=deconv(b,a) (https://www.mathworks.com/matlabcentral/fileexchange/69103-simplifying-the-built-in-function-q-r-deconv-b-a), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!