FUNCTION REFERENCE

residue

Convert rational polynomials to partial fractions or back.

Convert rational polynomials to partial fractions or back.

Syntax

[r,p,k] = residue(b,a); [b,a] = residue(r,p,k)

Example

[r,p,k] = residue([1 2], [1 3 2]); p   % [-2; -1]

Differences from MATLAB: Coefficient and pole vectors are bounded at 4097 entries; close poles are grouped with relative tolerance 1e-3. With complex input, results with zero imaginary parts are real and [b,a] = residue(r,p,k) keeps leading zeros of b, as in MATLAB.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.