Effacer les filtres
Effacer les filtres

symbolic z transform answer to transfer function

3 vues (au cours des 30 derniers jours)
William
William le 9 Sep 2013
Is there a way to convert the symbolic answer of ztrans() to a transfer function tf()?
right now I am using
syms n z
x2_n = (1+n+n^2)
ztrans(x2_n)
I need to get the answer into a transfer function. Is there a way to do this?
Thanks!

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 9 Sep 2013
Modifié(e) : Azzi Abdelmalek le 9 Sep 2013
syms n z
x2_n = (1+n+n^2);
m=ztrans(x2_n);
h=collect(m);
[ii,jj]=numden(h);
num=sym2poly(ii);
den=sym2poly(jj);
ts=1 % Sample time
model=tf(num,den,ts)

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by