how to display final partial fraction

I have to find partial fraction of given signal $X=[s^3-2s^2-5s+6 ] / [s^2-s+2] $
With use of residue command, i get values of r and p and k but how can i modify my code so as to display in MATLAB my answer as a natural/real partial fraction looks like on books and copies(as shown in red boundry/circle in attached photo) instead of just showing r and p and k vectors
for this i am working with following MATLAB code:
clc
clear all
close all
nx=[1 -2 -5 6]
dx=[1 -1 2]
[R,P,K]=residue(nx,dx)
integration-partial-fractions-1.jpg

2 件のコメント

Daniel von Eschwege
Daniel von Eschwege 2020 年 10 月 27 日
syms s
X=[s^3-2*s^2-5*s+6 ] / [s^2-s+2]
partfrac(X, s)
Omkar Srinivas
Omkar Srinivas 2021 年 8 月 28 日
Not valid

サインインしてコメントする。

回答 (1 件)

Daniel von Eschwege
Daniel von Eschwege 2020 年 10 月 27 日

0 投票

syms s
X=[s^3-2*s^2-5*s+6 ] / [s^2-s+2]
partfrac(X, s)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

リリース

R2015a

質問済み:

2019 年 5 月 19 日

コメント済み:

2021 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by