You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
In the polynomial division, such as b(x)/a(x)=q(x)+r(x)/b(x) or
b(x)=a(x)q(x)+r(x)
where we denote length of b,a,q,r as Lb,La,Lq,Lr, respectively.
Then using the built-in function,
[q,r]=deconv(b,a)
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
[q,r]=deconv_e(b,a)
will resolve this problem,
Cite As
Feng Cheng Chang (2026). 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 .
Acknowledgements
Inspired by: Finite Difference Laplace Equation Solver using unequal square grid xy grids.
General Information
- Version 1.0 (1.55 KB)
MATLAB Release Compatibility
- Compatible with R2012a and later releases
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0 |
