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 Exchange에서 Creating 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