??? subscript indices must either be real positive integers or logicals
1 次查看(过去 30 天)
显示 更早的评论
please help fixing this issue
numg = [1 2]
deng = [1 6 13 17 10 2]
[a,b,c,d] = tf2ss(numg,deng)
sys = ss(a,b,c,d)
0 个评论
回答(1 个)
Ced
2016-3-18
编辑:Ced
2016-3-18
I have no problem running this code. You probably have a variable called ss somewhere which overshadows the function of the same name. You need to rename or delete it.
Since a has negative elements, it tries to access negative elements of ss, and throws that error.
2 个评论
Walter Roberson
2016-3-18
You did not indicate which line the error is being reported on.
What is the output of
which tf2ss
which ss
which logical
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!