Why do I receive an error when I run this code?
显示 更早的评论
Why do I receive an error when I run this code?
sys=tf([1],[1 1],'InputDelay',2)
sysd=c2d(sys,0.5)
[num,den]=tfdata(sysd)
num=num2str(num{:})
den=num2str(den{:})
num=poly2sym(num,z)
den=poly2sym(den,z)
num=char(num)
den=char(den)
采纳的回答
更多回答(1 个)
Julián Francisco
2011-6-9
0 个投票
My Matlab program says that you have not defined the variable z.
1 个评论
Paulo Silva
2011-6-9
it should be like this 'z' instead of just z
类别
在 帮助中心 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!