MATLAB: How to perform partial fraction expansion with symbolic variables

symbolic

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

Best Answer

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.