Partial-Fraction Decomposition

版本 1.0.0.0 (2.5 KB) 作者: xianfa zeng
This function is used for Partial-Fraction Decomposition.
502.0 次下载
更新时间 2009/7/4

查看许可证

% (1) For the fraction bellow:
% s+2
% F(s) = ----------------
% s(s+1)^2(s+3)
% Input:
% >> num_input = [1 2];
% >> den_input = [1 0;1 1;1 1;1 3];
% >> frac_decomp(num_input,den_input)
%
% Result is:
% roots and counts:
% [ 0, 1]
% [ -3, 1]
% [ -1, 2]
%
% symbolic Expression:
%
% 1. s + 2.
% --------------------
% 2
% s (s + 3.) (s + 1.)
% Final Expression:
%
% 0.667 0.0833 0.500 0.750
% ----- + ------ - --------- - ------
% s s + 3. 2 s + 1.
% (s + 1.)
%
% (2) For the following fraction:
% 1
% F(s) = ------------------
% (s+1)^2(s+2s+2)
%
% Input:
% >> num_input = [1];
% >> den_input = [0 1 1;0 1 1;1 2 2];
% >> frac_decomp(num_input,den_input)
%
% Results is:
% roots and counts:
% [ -1+i, 1]
% [ -1-i, 1]
% [ -1, 2]
%
% symbolic Expression:
%
% 1.
% -----------------------------------------
% 2
% (s + 1. - 1. I) (s + 1. + 1. I) (s + 1.)
% Final Expression:
%
% 0. - 0.500 I 0. + 0.500 I 1.00 - 0. I
% - ------------- - ------------- + -----------
% s + 1. - 1. I s + 1. + 1. I 2
% (s + 1.)

引用格式

xianfa zeng (2024). Partial-Fraction Decomposition (https://www.mathworks.com/matlabcentral/fileexchange/24635-partial-fraction-decomposition), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

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