필터 지우기
필터 지우기

Can matlab give me difference equation from transfer fucntion

조회 수: 58 (최근 30일)
moonman
moonman 2011년 11월 12일
댓글: Ben Le 2017년 2월 4일
Hi My transfer function is H(z)= (1-z(-1)) / (1-3z(-1)+2z(-2))
How can i calculate its difference equation. I have calculated by hand but i want to know the methods of Matlab as well

채택된 답변

Wayne King
Wayne King 2011년 11월 12일
I think I'm trying to say that you see it right away if you have the Z-transform. Do you have the System Identification Toolbox? You can do:
M = idpoly([1 -3 2],[1 -1],'NoiseVariance',0)
  댓글 수: 2
moonman
moonman 2011년 11월 12일
Ok for this equation it is ok
lets suppose we have some complex transfer function
then is there any way matlab gives difference equation
Ben Le
Ben Le 2017년 2월 4일
Hi, If I don't have System Identification Toolbox, how can I do it in Matlab? Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Gert Kruger
Gert Kruger 2015년 7월 29일
편집: Gert Kruger 2015년 7월 29일
syms z;
H = (1-z^-1) / (1-3*z^-1+2*z^-2);
[N, D] = numden(H);
Nc = eval(coeffs(N)); %Get coeffs and evaluatle symbolic variable, i.e. make real matrix
Dc = eval(coeffs(D));
Nc = Nc./(Dc(1)); %Turn into proper polynomial, first coeffs of a is 1
Dc = Dc./(Dc(1));
M = idpoly(Dc, Nc, 'NoiseVariance',0)

Wayne King
Wayne King 2011년 11월 12일
You have the difference equation:
H(z)= (1-z(-1)) / (1-3z(-1)+2z(-2))
y(n)-3*y(n-1)+2*y(n-2) = x(n)-x(n-1);
zplane([1 -1],[1 -3 2]);
This is not stable, you have a pole outside the unit circle.
  댓글 수: 1
moonman
moonman 2011년 11월 12일
And Thanks for telling me abt new command zplane
I used to use pzmap which does not show overlapped poles and zeros but zplane is showing the digits if multiple poles and zeros are there at same place
Great help

댓글을 달려면 로그인하십시오.


moonman
moonman 2011년 11월 12일
Thanks king yes i have calculated all this and i know it is unstable systm but i need to know that can matlab give difference equation the way it gives poles and zeros by pole zero command and plots by pzmap

카테고리

Help CenterFile Exchange에서 Stability Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by