symbolic z transform answer to transfer function
5 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
Azzi Abdelmalek
2013-9-9
编辑:Azzi Abdelmalek
2013-9-9
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)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!