??? subscript indices must either be real positive integers or logicals
3 ビュー (過去 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 で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!