How to perform partial fraction expansion with symbolic variables

48 views (last 30 days)
Hello, I would like to perform PFE on a symbolic term, such as
if true
[r,p,k] = residue(1,[a b 1]);
end
The error I get is: "Conversion to logical from sym not possible". Is there no way to solve this? I need it as a simplification for inverse laplace transform. Thanks

Accepted Answer

Star Strider
Star Strider on 9 Mar 2017
If you have R2015a or later, use the partfrac funciton. This is one of the better additions to the Symbolic Math Toolbox, since it allows ilaplace to transform equations it otherwise would not be able to.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!