Simplifying the built-in function [q,r]=deconv(b,a)

版本 1.0 (1.6 KB) 作者: Feng Cheng Chang
Create an efficient function [q,r]=deconc_e(b,a) to eliminate the undesired data that resulted from running the existing built-in function
24.0 次下载
更新时间 2018/10/13

查看许可证

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,

引用格式

Feng Cheng Chang (2024). 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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
与 R2012a 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Preprocessing Data 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0