"Axis" function error
10 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
dpb
2022 年 10 月 3 日
編集済み: dpb
2022 年 10 月 5 日
-3 < 0 despite abs(3) being greater -- as the error message says, the axis limits have to be in strictly ascending order numerically, not in the order they appear on the drawn figure above...
Unfortunately we can't copy/paste figures instead of text, but the culprit line above should be
%axes([0 20 k 0])
when k<0
You don't need an axis command here at all, though, it will be created automagically when call
k=-3;tau=4;
G=tf(k,[tau 1]);
step(G)
xlim([0 20])
is simpler way to get there, anyway...
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!